mirror of
https://github.com/go-gitea/gitea.git
synced 2025-01-07 21: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
|
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 New Issue
Block a user