1
1
mirror of https://github.com/go-gitea/gitea synced 2025-12-07 13:28:25 +00:00

Use @mariusor's suggestions for idiomatic go-ap usage

This commit is contained in:
Anthony Wang
2022-06-11 11:00:45 -05:00
parent f7da251c5d
commit cf6aed386d
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -51,8 +51,8 @@ func Person(ctx *context.APIContext) {
}
person.Name = name
person.Inbox = ap.Item(ap.IRI(link + "/inbox"))
person.Outbox = ap.Item(ap.IRI(link + "/outbox"))
ap.Inbox.AddTo(person)
ap.Outbox.AddTo(person)
person.PublicKey.ID = ap.IRI(link + "#main-key")
person.PublicKey.Owner = ap.IRI(link)