aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/activitypub
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/activitypub')
-rw-r--r--server/controllers/activitypub/inbox.ts4
1 files changed, 3 insertions, 1 deletions
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',
19inboxRouter.post('/accounts/:name/inbox', 19inboxRouter.post('/accounts/:name/inbox',
20 signatureValidator, 20 signatureValidator,
21 asyncMiddleware(checkSignature), 21 asyncMiddleware(checkSignature),
22 localAccountValidator, 22 asyncMiddleware(localAccountValidator),
23 asyncMiddleware(activityPubValidator), 23 asyncMiddleware(activityPubValidator),
24 asyncMiddleware(inboxController) 24 asyncMiddleware(inboxController)
25) 25)
@@ -36,6 +36,8 @@ async function inboxController (req: express.Request, res: express.Response, nex
36 const rootActivity: RootActivity = req.body 36 const rootActivity: RootActivity = req.body
37 let activities: Activity[] = [] 37 let activities: Activity[] = []
38 38
39 console.log(rootActivity)
40
39 if ([ 'Collection', 'CollectionPage' ].indexOf(rootActivity.type) !== -1) { 41 if ([ 'Collection', 'CollectionPage' ].indexOf(rootActivity.type) !== -1) {
40 activities = (rootActivity as ActivityPubCollection).items 42 activities = (rootActivity as ActivityPubCollection).items
41 } else if ([ 'OrderedCollection', 'OrderedCollectionPage' ].indexOf(rootActivity.type) !== -1) { 43 } else if ([ 'OrderedCollection', 'OrderedCollectionPage' ].indexOf(rootActivity.type) !== -1) {