From ee28cdf1c488ac6ad6f3d06804b9c5e63eea1965 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 6 Apr 2018 11:54:24 +0200 Subject: Upgrade server dependencies --- server/controllers/activitypub/inbox.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'server/controllers/activitypub') diff --git a/server/controllers/activitypub/inbox.ts b/server/controllers/activitypub/inbox.ts index df041aebf..73fbd94aa 100644 --- a/server/controllers/activitypub/inbox.ts +++ b/server/controllers/activitypub/inbox.ts @@ -19,7 +19,7 @@ inboxRouter.post('/inbox', inboxRouter.post('/accounts/:name/inbox', signatureValidator, asyncMiddleware(checkSignature), - localAccountValidator, + asyncMiddleware(localAccountValidator), asyncMiddleware(activityPubValidator), asyncMiddleware(inboxController) ) @@ -36,6 +36,8 @@ async function inboxController (req: express.Request, res: express.Response, nex const rootActivity: RootActivity = req.body let activities: Activity[] = [] + console.log(rootActivity) + if ([ 'Collection', 'CollectionPage' ].indexOf(rootActivity.type) !== -1) { activities = (rootActivity as ActivityPubCollection).items } else if ([ 'OrderedCollection', 'OrderedCollectionPage' ].indexOf(rootActivity.type) !== -1) { -- cgit v1.2.3