Skip to content

Node.js based forum software built for the modern web

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

Barış Soner Uşaklıfd400a008d65
diff --git a/src/topics/unread.js b/src/topics/unread.js
index f07640875f..c816bd62e0 100644
--- a/src/topics/unread.js
+++ b/src/topics/unread.js
@@ -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);
};
};