Skip to content

Node.js based forum software built for the modern web

fix: missing page parseInt

Julian Lam9978af597876
diff --git a/src/activitypub/helpers.js b/src/activitypub/helpers.js
index 044fc2c82d..27d243f72e 100644
--- a/src/activitypub/helpers.js
+++ b/src/activitypub/helpers.js
@@ -483,6 +483,7 @@ Helpers.generateCollection = async ({ set, method, count, page, perPage, url })
paginate = false;
}
+ page = parseInt(page, 10) || undefined;
if (page) {
const invalidPagination = page < 1 || page > pageCount;
if (invalidPagination) {