diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-23 16:55:13 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:53 +0100 |
commit | 16b90975941b78d01d7202d441bf731a10048c16 (patch) | |
tree | 11709f51ec79785f32282dfbdd33277af483b2e6 /server/controllers | |
parent | d8553faa4939889fa7b7ef7329aa474a81cbbdb9 (diff) | |
download | PeerTube-16b90975941b78d01d7202d441bf731a10048c16.tar.gz PeerTube-16b90975941b78d01d7202d441bf731a10048c16.tar.zst PeerTube-16b90975941b78d01d7202d441bf731a10048c16.zip |
Fetch video likes/dislikes too
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/activitypub/inbox.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/activitypub/inbox.ts b/server/controllers/activitypub/inbox.ts index 30e7f706b..243ae7381 100644 --- a/server/controllers/activitypub/inbox.ts +++ b/server/controllers/activitypub/inbox.ts | |||
@@ -38,7 +38,7 @@ async function inboxController (req: express.Request, res: express.Response, nex | |||
38 | if ([ 'Collection', 'CollectionPage' ].indexOf(rootActivity.type) !== -1) { | 38 | if ([ 'Collection', 'CollectionPage' ].indexOf(rootActivity.type) !== -1) { |
39 | activities = (rootActivity as ActivityPubCollection).items | 39 | activities = (rootActivity as ActivityPubCollection).items |
40 | } else if ([ 'OrderedCollection', 'OrderedCollectionPage' ].indexOf(rootActivity.type) !== -1) { | 40 | } else if ([ 'OrderedCollection', 'OrderedCollectionPage' ].indexOf(rootActivity.type) !== -1) { |
41 | activities = (rootActivity as ActivityPubOrderedCollection).orderedItems | 41 | activities = (rootActivity as ActivityPubOrderedCollection<Activity>).orderedItems |
42 | } else { | 42 | } else { |
43 | activities = [ rootActivity as Activity ] | 43 | activities = [ rootActivity as Activity ] |
44 | } | 44 | } |