Skip to content

Commit

Permalink
fix: return early for guests/spiders
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Oct 24, 2020
1 parent 156e139 commit 203db47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/topics/unread.js
Expand Up @@ -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;
}

Expand Down

0 comments on commit 203db47

Please sign in to comment.