Node.js based forum software built for the modern web
allow first page too
Barış Soner Uşaklı4f8aa1807ede
diff --git a/src/socket.io/categories.js b/src/socket.io/categories.jsindex 0a90698115..169e207b0d 100644--- a/src/socket.io/categories.js+++ b/src/socket.io/categories.js@@ -148,7 +148,7 @@ SocketCategories.isModerator = async function (socket, cid) {};SocketCategories.loadMoreSubCategories = async function (socket, data) {- if (!data || !data.cid || !(parseInt(data.start, 10) > 0)) {+ if (!data || !data.cid || !(parseInt(data.start, 10) >= 0)) {throw new Error('[[error:invalid-data]]');}const allowed = await privileges.categories.can('read', data.cid, socket.uid);