aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-01-29 10:52:19 +0100
committerChocobozzz <me@florianbigard.com>2018-01-29 10:52:19 +0100
commit46531a0abdd5c860a1a8cdb4b636b9c55bfb115b (patch)
tree9cc1aaa565985c04b12bf985e9c6f21aebf42ff3 /server/helpers
parentc88593f72f1097cc34a091b4cb4b6d6e214d1e9f (diff)
downloadPeerTube-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.ts3
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
28function activityPubCollection (results: any[]) { 28function 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