aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/activitypub.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers/activitypub.ts')
-rw-r--r--server/helpers/activitypub.ts14
1 files changed, 8 insertions, 6 deletions
diff --git a/server/helpers/activitypub.ts b/server/helpers/activitypub.ts
index 04d85b8e6..fb4a43a01 100644
--- a/server/helpers/activitypub.ts
+++ b/server/helpers/activitypub.ts
@@ -46,14 +46,16 @@ function activityPubCollectionPagination (url: string, page: number, result: Res
46 orderedItems: result.data 46 orderedItems: result.data
47 } 47 }
48 48
49 const obj = { 49 if (page === 1) {
50 id: url, 50 return activityPubContextify({
51 type: 'OrderedCollection', 51 id: url,
52 totalItems: result.total, 52 type: 'OrderedCollection',
53 orderedItems: orderedCollectionPagination 53 totalItems: result.total,
54 first: orderedCollectionPagination
55 })
54 } 56 }
55 57
56 return activityPubContextify(obj) 58 return orderedCollectionPagination
57} 59}
58 60
59function buildSignedActivity (byAccount: AccountInstance, data: Object) { 61function buildSignedActivity (byAccount: AccountInstance, data: Object) {