From c7cfbe2702913a6d6e7c962992546c96aa512068 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Fri, 24 Sep 2021 17:56:48 +0200 Subject: Unblock fix (#247) * start tests for inbox posts * go mod tidy * rename transferContext * test block/unblock * improve logging * improve logging * fix comment typo --- internal/api/s2s/user/common.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/api/s2s/user/common.go') diff --git a/internal/api/s2s/user/common.go b/internal/api/s2s/user/common.go index 8a3846901..e96082c3e 100644 --- a/internal/api/s2s/user/common.go +++ b/internal/api/s2s/user/common.go @@ -33,8 +33,8 @@ var ActivityPubAcceptHeaders = []string{ `application/ld+json; profile="https://www.w3.org/ns/activitystreams"`, } -// populateContext transfers the signature verifier and signature from the gin context to the request context -func populateContext(c *gin.Context) context.Context { +// transferContext transfers the signature verifier and signature from the gin context to the request context +func transferContext(c *gin.Context) context.Context { ctx := c.Request.Context() verifier, signed := c.Get(string(util.APRequestingPublicKeyVerifier)) -- cgit v1.2.3