blob: 12aae546597fcb1b1d3ad1d302b0d7742901df14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package views
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)
}
|