aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-04-06 11:54:24 +0200
committerChocobozzz <me@florianbigard.com>2018-04-06 14:39:19 +0200
commitee28cdf1c488ac6ad6f3d06804b9c5e63eea1965 (patch)
tree23c614a34d09b565b3c428a77df72541d4653418 /server/controllers
parent228e84aa7e604c010ecc39bd54b62fefcca3b94e (diff)
downloadPeerTube-ee28cdf1c488ac6ad6f3d06804b9c5e63eea1965.tar.gz
PeerTube-ee28cdf1c488ac6ad6f3d06804b9c5e63eea1965.tar.zst
PeerTube-ee28cdf1c488ac6ad6f3d06804b9c5e63eea1965.zip
Upgrade server dependencies
Diffstat (limited to 'server/controllers')
-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) {