mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-01-09 04:18:57 +03:00
make fmt
This commit is contained in:
parent
67e0fcdd76
commit
57e6b67095
1 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ func Person(ctx *context.APIContext) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
username := ctx.Params("username")
|
username := ctx.Params("username")
|
||||||
|
|
||||||
link := strings.TrimSuffix(setting.AppURL, "/") + strings.TrimSuffix(ctx.Req.URL.EscapedPath(), "/")
|
link := strings.TrimSuffix(setting.AppURL, "/") + strings.TrimSuffix(ctx.Req.URL.EscapedPath(), "/")
|
||||||
person := ap.PersonNew(ap.IRI(link))
|
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.ID = ap.IRI(link + "#main-key")
|
||||||
person.PublicKey.Owner = ap.IRI(link)
|
person.PublicKey.Owner = ap.IRI(link)
|
||||||
|
|
||||||
publicKeyPem, err := activitypub.GetPublicKey(user)
|
publicKeyPem, err := activitypub.GetPublicKey(user)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
ctx.Error(http.StatusInternalServerError, "GetPublicKey", err)
|
ctx.Error(http.StatusInternalServerError, "GetPublicKey", err)
|
||||||
|
|
Loading…
Reference in a new issue