From fd400a008d65d665ea0256905c6826a3c136a7d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sat, 27 Jun 2020 21:28:23 -0400 Subject: [PATCH] fix: don't show in unreplied if score is null --- src/topics/unread.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }; };