summaryrefslogtreecommitdiff
path: root/internal/api/s2s/user/common.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2021-09-24 17:56:48 +0200
committerLibravatar GitHub <noreply@github.com>2021-09-24 17:56:48 +0200
commitc7cfbe2702913a6d6e7c962992546c96aa512068 (patch)
tree4b0bb21aab9be586d5db26d172f548e12c07f96e /internal/api/s2s/user/common.go
parentGoreleaser (#241) (diff)
downloadgotosocial-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.go4
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))