package views import ( "git.capotej.com/capotej/communique/models" "github.com/go-fed/activity/streams" ) func RenderActivity(name, domain string, v models.OutboxItem) (map[string]interface{}, error) { note, err := activityObjectNote(name, domain, v) if err != nil { return nil, err } crea, err := activityObjectCreate(name, domain, v, note) if err != nil { return nil, err } return streams.Serialize(crea) }