mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-28 01:21:13 +01:00
refactor: fix wording
This commit is contained in:
@@ -44,11 +44,11 @@ topicsController.get = async function getTopic(req, res, callback) {
|
|||||||
|
|
||||||
let currentPage = parseInt(req.query.page, 10) || 1;
|
let currentPage = parseInt(req.query.page, 10) || 1;
|
||||||
const pageCount = Math.max(1, Math.ceil((topicData && topicData.postcount) / settings.postsPerPage));
|
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 (
|
if (
|
||||||
!topicData ||
|
!topicData ||
|
||||||
userPrivileges.disabled ||
|
userPrivileges.disabled ||
|
||||||
validPagination ||
|
invalidPagination ||
|
||||||
(topicData.scheduled && !userPrivileges.view_scheduled)
|
(topicData.scheduled && !userPrivileges.view_scheduled)
|
||||||
) {
|
) {
|
||||||
return callback();
|
return callback();
|
||||||
|
|||||||
Reference in New Issue
Block a user