mirror of
https://github.com/go-gitea/gitea.git
synced 2025-01-06 17:17:44 +03:00
Correctly add inbox/outbox IRIs to person
This commit is contained in:
parent
cf6aed386d
commit
528c282d68
@ -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 New Issue
Block a user