aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares')
-rw-r--r--server/middlewares/activitypub.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/activitypub.ts b/server/middlewares/activitypub.ts
index ab7d04d25..45899818e 100644
--- a/server/middlewares/activitypub.ts
+++ b/server/middlewares/activitypub.ts
@@ -38,7 +38,7 @@ async function checkSignature (req: Request, res: Response, next: NextFunction)
38 38
39function executeIfActivityPub (req: Request, res: Response, next: NextFunction) { 39function executeIfActivityPub (req: Request, res: Response, next: NextFunction) {
40 const accepted = req.accepts(ACCEPT_HEADERS) 40 const accepted = req.accepts(ACCEPT_HEADERS)
41 if (accepted === false || ACTIVITY_PUB.POTENTIAL_ACCEPT_HEADERS.indexOf(accepted) === -1) { 41 if (accepted === false || ACTIVITY_PUB.POTENTIAL_ACCEPT_HEADERS.includes(accepted) === false) {
42 // Bypass this route 42 // Bypass this route
43 return next('route') 43 return next('route')
44 } 44 }