mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-26 19:14:02 +01:00
Correctly add inbox/outbox IRIs to person
This commit is contained in:
parent
cf6aed386d
commit
528c282d68
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue