From 528c282d686f9ced4b6e26b73cdf2c0e5b97bfce Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Sat, 11 Jun 2022 12:40:10 -0500 Subject: [PATCH] Correctly add inbox/outbox IRIs to person --- routers/api/v1/activitypub/person.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/routers/api/v1/activitypub/person.go b/routers/api/v1/activitypub/person.go index ced0955236..1358e01020 100644 --- a/routers/api/v1/activitypub/person.go +++ b/routers/api/v1/activitypub/person.go @@ -51,8 +51,10 @@ func Person(ctx *context.APIContext) { } person.Name = name - ap.Inbox.AddTo(person) - ap.Outbox.AddTo(person) + person.Inbox = nil + person.Inbox, _ = ap.Inbox.AddTo(person) + person.Outbox = nil + person.Outbox, _ = ap.Outbox.AddTo(person) person.PublicKey.ID = ap.IRI(link + "#main-key") person.PublicKey.Owner = ap.IRI(link)