mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: pinned tids showing on page > 1
This commit is contained in:
@@ -72,8 +72,7 @@ module.exports = function (Categories) {
|
|||||||
normalTids = await db[reverse ? 'getSortedSetRevRange' : 'getSortedSetRange'](set, start, stop);
|
normalTids = await db[reverse ? 'getSortedSetRevRange' : 'getSortedSetRange'](set, start, stop);
|
||||||
}
|
}
|
||||||
normalTids = normalTids.filter(tid => !pinnedTids.includes(tid));
|
normalTids = normalTids.filter(tid => !pinnedTids.includes(tid));
|
||||||
|
return pinnedTidsOnPage.concat(normalTids);
|
||||||
return pinnedTids.concat(normalTids);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Categories.getTopicCount = async function (data) {
|
Categories.getTopicCount = async function (data) {
|
||||||
|
|||||||
Reference in New Issue
Block a user