Skip to content

Node.js based forum software built for the modern web

dont mark read if topic is not in topics:recent

barisusakli872080d83259
diff --git a/src/topics/unread.js b/src/topics/unread.js
index 7abaf5ab4c..d70915a7b7 100644
--- a/src/topics/unread.js
+++ b/src/topics/unread.js
@@ -174,7 +174,7 @@ module.exports = function(Topics) {
}
tids = tids.filter(function(tid, index) {
- return !results.userScores[index] || results.userScores[index] < results.topicScores[index];
+ return results.topicScores[index] && (!results.userScores[index] || results.userScores[index] < results.topicScores[index]);
});
if (!tids.length) {