From 57e6b67095c562a1073dfa2e0c4ac2d7311837ab Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Thu, 9 Jun 2022 17:43:54 -0500 Subject: [PATCH] make fmt --- routers/api/v1/activitypub/person.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routers/api/v1/activitypub/person.go b/routers/api/v1/activitypub/person.go index d829888cc2..361889ec47 100644 --- a/routers/api/v1/activitypub/person.go +++ b/routers/api/v1/activitypub/person.go @@ -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)