package resources import ( "git.capotej.com/capotej/communique/urls" "github.com/go-fed/activity/streams" ) func RenderProfile(name, domain string) (map[string]interface{}, error) { u, err := urls.UrlInbox(name, domain) if err != nil { return nil, err } inb := streams.NewActivityStreamsInboxProperty() inb.SetIRI(u) p := streams.NewActivityStreamsService() p.SetActivityStreamsInbox(inb) return streams.Serialize(p) }