From 7969e62d061faa1488a1bcbfdb187e586f1d6fc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sat, 25 May 2024 12:36:04 -0400 Subject: [PATCH] fix: wrong var for ignored --- src/topics/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/topics/index.js b/src/topics/index.js index 59e731affe..5724d8a276 100644 --- a/src/topics/index.js +++ b/src/topics/index.js @@ -138,7 +138,7 @@ Topics.getTopicsByTids = async function (tids, options) { topic.isOwner = topic.uid === parseInt(uid, 10); topic.ignored = followData[i].ignoring; topic.followed = followData[i].following; - topic.unread = parseInt(uid, 10) <= 0 || (!hasRead[i] && !topic.ignored[i]); + topic.unread = parseInt(uid, 10) <= 0 || (!hasRead[i] && !topic.ignored); topic.bookmark = bookmarks[i] && (sortNewToOld ? Math.max(1, topic.postcount + 2 - bookmarks[i]) : Math.min(topic.postcount, bookmarks[i] + 1));