Skip to content

Commit f48115f

Browse files
author
Anthony Wang
committed
Go back to using ap.IRI to generate inbox and outbox IRIs
1 parent 1da4849 commit f48115f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routers/api/v1/activitypub/person.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ func Person(ctx *context.APIContext) {
5959
URL: ap.IRI(ctx.ContextUser.AvatarLink()),
6060
}
6161

62-
person.Inbox, _ = ap.Inbox.AddTo(person)
63-
person.Outbox, _ = ap.Outbox.AddTo(person)
62+
person.Inbox = ap.IRI(link + "/inbox")
63+
person.Outbox = ap.IRI(link + "/outbox")
6464

6565
person.PublicKey.ID = ap.IRI(link + "#main-key")
6666
person.PublicKey.Owner = ap.IRI(link)

0 commit comments

Comments
 (0)