diff options
author | 2021-09-24 17:56:48 +0200 | |
---|---|---|
committer | 2021-09-24 17:56:48 +0200 | |
commit | c7cfbe2702913a6d6e7c962992546c96aa512068 (patch) | |
tree | 4b0bb21aab9be586d5db26d172f548e12c07f96e /internal/api/s2s/user/common.go | |
parent | Goreleaser (#241) (diff) | |
download | gotosocial-c7cfbe2702913a6d6e7c962992546c96aa512068.tar.xz |
Unblock fix (#247)
* start tests for inbox posts
* go mod tidy
* rename transferContext
* test block/unblock
* improve logging
* improve logging
* fix comment typo
Diffstat (limited to 'internal/api/s2s/user/common.go')
-rw-r--r-- | internal/api/s2s/user/common.go | 4 |
1 files changed, 2 insertions, 2 deletions
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)) |