blob: 2563d015f1d402198b474702610e7f92ad4804c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
package views
import (
"git.capotej.com/capotej/communique/models"
"github.com/go-fed/activity/streams"
)
func RenderNote(name, domain string, v models.OutboxItem) (map[string]interface{}, error) {
note, err := activityObjectNote(name, domain, v)
if err != nil {
return nil, err
}
return streams.Serialize(note)
}
|