diff options
Diffstat (limited to 'server/helpers')
-rw-r--r-- | server/helpers/activitypub.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/helpers/activitypub.ts b/server/helpers/activitypub.ts index d0bcc6785..9d6d8b2fa 100644 --- a/server/helpers/activitypub.ts +++ b/server/helpers/activitypub.ts | |||
@@ -154,7 +154,9 @@ async function activityPubCollectionPagination ( | |||
154 | id: baseUrl, | 154 | id: baseUrl, |
155 | type: 'OrderedCollectionPage', | 155 | type: 'OrderedCollectionPage', |
156 | totalItems: result.total, | 156 | totalItems: result.total, |
157 | first: baseUrl + '?page=1' | 157 | first: result.data.length === 0 |
158 | ? undefined | ||
159 | : baseUrl + '?page=1' | ||
158 | } | 160 | } |
159 | } | 161 | } |
160 | 162 | ||