mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-01-30 10:48:15 +00: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
|
person.Name = name
|
||||||
|
|
||||||
ap.Inbox.AddTo(person)
|
person.Inbox = nil
|
||||||
ap.Outbox.AddTo(person)
|
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.ID = ap.IRI(link + "#main-key")
|
||||||
person.PublicKey.Owner = ap.IRI(link)
|
person.PublicKey.Owner = ap.IRI(link)
|
||||||
|
|
Loading…
Reference in a new issue