Node.js based forum software built for the modern web
fix: return early for guests/spiders
Barış Soner Uşaklı203db47b3088
diff --git a/src/topics/unread.js b/src/topics/unread.jsindex f407da95a7..084eea8a74 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 (!data.tids && !data.tids.length) {+ if (uid <= 0 || !data.tids || !data.tids.length) {return data;}