forked from gitea/gitea
Apply suggestions from code review
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
This commit is contained in:
parent
f53e46c721
commit
f8ad1a832f
@ -59,9 +59,7 @@ func Person(ctx *context.APIContext) {
|
|||||||
URL: ap.IRI(ctx.ContextUser.AvatarLink()),
|
URL: ap.IRI(ctx.ContextUser.AvatarLink()),
|
||||||
}
|
}
|
||||||
|
|
||||||
person.Inbox = nil
|
|
||||||
person.Inbox, _ = ap.Inbox.AddTo(person)
|
person.Inbox, _ = ap.Inbox.AddTo(person)
|
||||||
person.Outbox = nil
|
|
||||||
person.Outbox, _ = ap.Outbox.AddTo(person)
|
person.Outbox, _ = ap.Outbox.AddTo(person)
|
||||||
|
|
||||||
person.PublicKey.ID = ap.IRI(link + "#main-key")
|
person.PublicKey.ID = ap.IRI(link + "#main-key")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user