diff options
Diffstat (limited to '')
-rw-r--r-- | views/outbox.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/views/outbox.go b/views/outbox.go index ee28842..8aef906 100644 --- a/views/outbox.go +++ b/views/outbox.go @@ -57,6 +57,14 @@ func RenderOutboxCollection(name, domain string, page []models.OutboxItem) (map[ crea.SetActivityStreamsTo(toProp) crea.SetActivityStreamsPublished(publishedProp) + actorUrl, err := urls.UrlProfile(name, domain) + if err != nil { + return nil, err + } + actorProp := streams.NewActivityStreamsActorProperty() + actorProp.AppendIRI(actorUrl) + crea.SetActivityStreamsActor(actorProp) + noteUrl, err := urls.UrlNote(name, domain, string(v.Id)) if err != nil { return nil, err |