fix: pinned tids showing on page > 1

v1.18.x
Barış Soner Uşaklı 6 years ago
parent a4dec7e3ab
commit f2912e9fe0

@ -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) {

Loading…
Cancel
Save