diff --git a/src/categories/topics.js b/src/categories/topics.js index 78b272cf5f..d8185afddf 100644 --- a/src/categories/topics.js +++ b/src/categories/topics.js @@ -72,8 +72,7 @@ module.exports = function (Categories) { normalTids = await db[reverse ? 'getSortedSetRevRange' : 'getSortedSetRange'](set, start, stop); } normalTids = normalTids.filter(tid => !pinnedTids.includes(tid)); - - return pinnedTids.concat(normalTids); + return pinnedTidsOnPage.concat(normalTids); }; Categories.getTopicCount = async function (data) {