mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: don't show in unreplied if score is null
This commit is contained in:
@@ -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);
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user