From 285fe7c93072b2a8e6a9af6b7e8ffcdefcffbddf Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 23 Feb 2018 15:09:12 +0100 Subject: Detect posting request in our own inbox --- server/controllers/activitypub/inbox.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/controllers/activitypub') diff --git a/server/controllers/activitypub/inbox.ts b/server/controllers/activitypub/inbox.ts index 8d65639f8..bd0d7a9c8 100644 --- a/server/controllers/activitypub/inbox.ts +++ b/server/controllers/activitypub/inbox.ts @@ -12,7 +12,7 @@ const inboxRouter = express.Router() inboxRouter.post('/inbox', signatureValidator, asyncMiddleware(checkSignature), - activityPubValidator, + asyncMiddleware(activityPubValidator), asyncMiddleware(inboxController) ) @@ -20,7 +20,7 @@ inboxRouter.post('/accounts/:name/inbox', signatureValidator, asyncMiddleware(checkSignature), localAccountValidator, - activityPubValidator, + asyncMiddleware(activityPubValidator), asyncMiddleware(inboxController) ) -- cgit v1.2.3