diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-29 10:52:19 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-29 10:52:19 +0100 |
commit | 46531a0abdd5c860a1a8cdb4b636b9c55bfb115b (patch) | |
tree | 9cc1aaa565985c04b12bf985e9c6f21aebf42ff3 /server/helpers | |
parent | c88593f72f1097cc34a091b4cb4b6d6e214d1e9f (diff) | |
download | PeerTube-46531a0abdd5c860a1a8cdb4b636b9c55bfb115b.tar.gz PeerTube-46531a0abdd5c860a1a8cdb4b636b9c55bfb115b.tar.zst PeerTube-46531a0abdd5c860a1a8cdb4b636b9c55bfb115b.zip |
Add id to likes/dislikes/comments/shares collections
Diffstat (limited to 'server/helpers')
-rw-r--r-- | server/helpers/activitypub.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/helpers/activitypub.ts b/server/helpers/activitypub.ts index 97115680c..aa5485850 100644 --- a/server/helpers/activitypub.ts +++ b/server/helpers/activitypub.ts | |||
@@ -25,8 +25,9 @@ function activityPubContextify <T> (data: T) { | |||
25 | }) | 25 | }) |
26 | } | 26 | } |
27 | 27 | ||
28 | function activityPubCollection (results: any[]) { | 28 | function activityPubCollection (url: string, results: any[]) { |
29 | return { | 29 | return { |
30 | id: url, | ||
30 | type: 'OrderedCollection', | 31 | type: 'OrderedCollection', |
31 | totalItems: results.length, | 32 | totalItems: results.length, |
32 | orderedItems: results | 33 | orderedItems: results |