fix: don't show in unreplied if score is null

v1.18.x
Barış Soner Uşaklı 5 years ago
parent e09ab3dc19
commit fd400a008d

@ -370,6 +370,6 @@ module.exports = function (Topics) {
Topics.filterUnrepliedTids = async function (tids) {
const scores = await db.sortedSetScores('topics:posts', tids);
return tids.filter((tid, index) => tid && scores[index] <= 1);
return tids.filter((tid, index) => tid && scores[index] !== null && scores[index] <= 1);
};
};

Loading…
Cancel
Save