diff options
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 | } |