1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-24 17:44:27 +00:00
This commit is contained in:
Anthony Wang 2022-06-09 17:43:54 -05:00
parent 67e0fcdd76
commit 57e6b67095
No known key found for this signature in database
GPG Key ID: BC96B00AEC5F2D76

View File

@ -38,7 +38,7 @@ func Person(ctx *context.APIContext) {
return
}
username := ctx.Params("username")
link := strings.TrimSuffix(setting.AppURL, "/") + strings.TrimSuffix(ctx.Req.URL.EscapedPath(), "/")
person := ap.PersonNew(ap.IRI(link))
@ -51,7 +51,7 @@ func Person(ctx *context.APIContext) {
person.PublicKey.ID = ap.IRI(link + "#main-key")
person.PublicKey.Owner = ap.IRI(link)
publicKeyPem, err := activitypub.GetPublicKey(user)
if err != nil {
ctx.Error(http.StatusInternalServerError, "GetPublicKey", err)