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

This commit is contained in:
Barış Soner Uşaklı
2020-06-27 21:28:23 -04:00
parent e09ab3dc19
commit fd400a008d

View File

@@ -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);
};
};