From a8d5e7ba7770fca8a8a7c37d5da8bf1ffd3a8c0b Mon Sep 17 00:00:00 2001 From: erik Date: Wed, 29 Nov 2023 15:45:04 +0100 Subject: [PATCH] Fix typos and format --- routers/api/v1/activitypub/repository.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/routers/api/v1/activitypub/repository.go b/routers/api/v1/activitypub/repository.go index 64d87fe8fd..b0928d9a32 100644 --- a/routers/api/v1/activitypub/repository.go +++ b/routers/api/v1/activitypub/repository.go @@ -107,9 +107,9 @@ func RepositoryInbox(ctx *context.APIContext) { } // get_person_by_rest - bytes := []byte{0} // no body needed for getting user actor - target := opt.Actor.GetID().String() // target is the person actor that originally performed the star activity - response, err := client.Get(bytes, target) // ToDo: Close body, maybe use in extra function + bytes := []byte{0} // no body needed for getting user actor + target := opt.Actor.GetID().String() // target is the person actor that originally performed the star activity + response, err := client.Get(bytes, target) if err != nil { panic(err) } @@ -119,7 +119,7 @@ func RepositoryInbox(ctx *context.APIContext) { panic(err) } - // parse resonse + // parse response person, err := forgefed.ParsePersonJson(body) if err != nil { panic(err)