diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-12 10:02:11 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-12 10:02:11 +0100 |
commit | 6502c3d43e512e968ad49f5a3bc9abc302471e18 (patch) | |
tree | 32f7a95080a7fa17198dc2556226dea5eb4c93b8 /server/middlewares | |
parent | 9a8cbd8278a37ee414f17d7de7c7281123484ba1 (diff) | |
download | PeerTube-6502c3d43e512e968ad49f5a3bc9abc302471e18.tar.gz PeerTube-6502c3d43e512e968ad49f5a3bc9abc302471e18.tar.zst PeerTube-6502c3d43e512e968ad49f5a3bc9abc302471e18.zip |
Avoid making retried requests to dead followers
Diffstat (limited to 'server/middlewares')
-rw-r--r-- | server/middlewares/activitypub.ts | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/server/middlewares/activitypub.ts b/server/middlewares/activitypub.ts index c7102b6bf..1488b42ab 100644 --- a/server/middlewares/activitypub.ts +++ b/server/middlewares/activitypub.ts | |||
@@ -35,7 +35,6 @@ async function checkSignature (req: Request, res: Response, next: NextFunction) | |||
35 | function executeIfActivityPub (fun: RequestHandler | RequestHandler[]) { | 35 | function executeIfActivityPub (fun: RequestHandler | RequestHandler[]) { |
36 | return (req: Request, res: Response, next: NextFunction) => { | 36 | return (req: Request, res: Response, next: NextFunction) => { |
37 | const accepted = req.accepts(ACCEPT_HEADERS) | 37 | const accepted = req.accepts(ACCEPT_HEADERS) |
38 | console.log(accepted) | ||
39 | if (accepted === false || ACTIVITY_PUB.POTENTIAL_ACCEPT_HEADERS.indexOf(accepted) === -1) { | 38 | if (accepted === false || ACTIVITY_PUB.POTENTIAL_ACCEPT_HEADERS.indexOf(accepted) === -1) { |
40 | return next() | 39 | return next() |
41 | } | 40 | } |