mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: return early for guests/spiders
This commit is contained in:
@@ -67,7 +67,7 @@ module.exports = function (Topics) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const data = await getTids(params);
|
const data = await getTids(params);
|
||||||
if (!data.tids && !data.tids.length) {
|
if (uid <= 0 || !data.tids || !data.tids.length) {
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user