diff options
author | Julio Capote <jcapote@gmail.com> | 2023-01-02 02:57:23 +0000 |
---|---|---|
committer | Julio Capote <jcapote@gmail.com> | 2023-01-02 02:57:23 +0000 |
commit | 2148666991eb98fa6935f4f36fc29cf1e704f834 (patch) | |
tree | df9ef2db74685543d7458650b69ce89db14ae51a /views/outbox.go | |
parent | 5efad50005484e4bcd56fd68a46040e3d89b0efe (diff) | |
download | communique-2148666991eb98fa6935f4f36fc29cf1e704f834.tar.gz |
followers and following endpoints
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 |