package resources import ( "fmt" "net/url" "path" "github.com/go-fed/activity/streams" ) func RenderProfile(name, domain string) (map[string]interface{}, error) { u, err := url.Parse(path.Join("https://", domain, "actors", name, "inbox")) if err != nil { return nil, fmt.Errorf("could not partse url: %w", err) } inb := streams.NewActivityStreamsInboxProperty() inb.SetIRI(u) p := streams.NewActivityStreamsService() p.SetActivityStreamsInbox(inb) return p.Serialize() }