Node.js based forum software built for the modern web
fix: dupes in unread followed topics
Barış Soner Uşaklı55533b11e5f6
diff --git a/src/topics/unread.js b/src/topics/unread.jsindex c816bd62e0..cac378142b 100644--- a/src/topics/unread.js+++ b/src/topics/unread.js@@ -184,7 +184,7 @@ module.exports = function (Topics) {tids = topicData.filter(t => filterCids.includes(t.cid)).map(t => t.tid);}const scores = await db.sortedSetScores('topics:recent', tids);- const data = tids.map((tid, index) => ({ value: tid, score: scores[index] }));+ const data = tids.map((tid, index) => ({ value: String(tid), score: scores[index] }));return data.filter(item => item.score > params.cutoff);}