Node.js based forum software built for the modern web
refactor: fix wording
Barış Soner Uşaklı6ed7e937ce1a
diff --git a/src/controllers/topics.js b/src/controllers/topics.jsindex 2ada5f590a..b40f2efe05 100644--- a/src/controllers/topics.js+++ b/src/controllers/topics.js@@ -44,11 +44,11 @@ topicsController.get = async function getTopic(req, res, callback) {let currentPage = parseInt(req.query.page, 10) || 1;const pageCount = Math.max(1, Math.ceil((topicData && topicData.postcount) / settings.postsPerPage));- const validPagination = (settings.usePagination && (currentPage < 1 || currentPage > pageCount));+ const invalidPagination = (settings.usePagination && (currentPage < 1 || currentPage > pageCount));if (!topicData ||userPrivileges.disabled ||- validPagination ||+ invalidPagination ||(topicData.scheduled && !userPrivileges.view_scheduled)) {return callback();