⚗️ Activitypub user outbox experimental
This commit is contained in:
16
pkg/internal/services/activitypub.go
Normal file
16
pkg/internal/services/activitypub.go
Normal file
@ -0,0 +1,16 @@
|
||||
package services
|
||||
|
||||
import (
|
||||
"github.com/go-ap/activitypub"
|
||||
"github.com/spf13/viper"
|
||||
)
|
||||
|
||||
func GetActivityID(uri string) activitypub.ID {
|
||||
baseUrl := viper.GetString("activitypub_base_url")
|
||||
return activitypub.ID(baseUrl + uri)
|
||||
}
|
||||
|
||||
func GetActivityIRI(uri string) activitypub.IRI {
|
||||
baseUrl := viper.GetString("activitypub_base_url")
|
||||
return activitypub.IRI(baseUrl + uri)
|
||||
}
|
Reference in New Issue
Block a user