aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-04-25 15:19:53 +0200
committerChocobozzz <me@florianbigard.com>2019-04-25 15:20:30 +0200
commitc28bcdd10a5a0d661e51c96345bbd6c4dcc43bc9 (patch)
tree5e3590d33c450f3937a09cc665c3220fc9ab5260 /server/middlewares
parentc0e71e849a40871ed8eea3dacd8608d380bdb490 (diff)
downloadPeerTube-c28bcdd10a5a0d661e51c96345bbd6c4dcc43bc9.tar.gz
PeerTube-c28bcdd10a5a0d661e51c96345bbd6c4dcc43bc9.tar.zst
PeerTube-c28bcdd10a5a0d661e51c96345bbd6c4dcc43bc9.zip
Fix pleroma follow
Diffstat (limited to 'server/middlewares')
-rw-r--r--server/middlewares/activitypub.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/middlewares/activitypub.ts b/server/middlewares/activitypub.ts
index 88cf342ee..b1e5b5236 100644
--- a/server/middlewares/activitypub.ts
+++ b/server/middlewares/activitypub.ts
@@ -74,6 +74,8 @@ async function checkHttpSignature (req: Request, res: Response) {
74 74
75 const verified = isHTTPSignatureVerified(parsed, actor) 75 const verified = isHTTPSignatureVerified(parsed, actor)
76 if (verified !== true) { 76 if (verified !== true) {
77 logger.warn('Signature from %s is invalid', actorUrl, { parsed })
78
77 res.sendStatus(403) 79 res.sendStatus(403)
78 return false 80 return false
79 } 81 }