From 2148666991eb98fa6935f4f36fc29cf1e704f834 Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Sun, 1 Jan 2023 21:57:23 -0500 Subject: followers and following endpoints --- views/outbox.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'views/outbox.go') 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 -- cgit v1.2.3