Skip to content

Node.js based forum software built for the modern web

feat: fire filter:topics.getUnreadTids even if there are no urnead topics

Barış Soner Uşaklıb81fd81af639
diff --git a/src/topics/unread.js b/src/topics/unread.js
index f0ab2a5c36..d4252c321d 100644
--- a/src/topics/unread.js
+++ b/src/topics/unread.js
@@ -67,7 +67,7 @@ module.exports = function (Topics) {
}
const data = await getTids(params);
- if (uid <= 0 || !data.tids || !data.tids.length) {
+ if (uid <= 0) {
return data;
}