Correctly add inbox/outbox IRIs to person

This commit is contained in:
Anthony Wang 2022-06-11 12:40:10 -05:00
parent cf6aed386d
commit 528c282d68
No known key found for this signature in database
GPG key ID: BC96B00AEC5F2D76

View file

@ -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)