From f48115f5f0638bfc28a4b138f27acf136b4041a6 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Tue, 14 Jun 2022 21:34:37 -0500 Subject: [PATCH] Go back to using ap.IRI to generate inbox and outbox IRIs --- routers/api/v1/activitypub/person.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routers/api/v1/activitypub/person.go b/routers/api/v1/activitypub/person.go index dca22c1a38f..7b1212fa73a 100644 --- a/routers/api/v1/activitypub/person.go +++ b/routers/api/v1/activitypub/person.go @@ -59,8 +59,8 @@ func Person(ctx *context.APIContext) { URL: ap.IRI(ctx.ContextUser.AvatarLink()), } - person.Inbox, _ = ap.Inbox.AddTo(person) - person.Outbox, _ = ap.Outbox.AddTo(person) + person.Inbox = ap.IRI(link + "/inbox") + person.Outbox = ap.IRI(link + "/outbox") person.PublicKey.ID = ap.IRI(link + "#main-key") person.PublicKey.Owner = ap.IRI(link)