fix: return early for guests/spiders

v1.18.x
Barış Soner Uşaklı 4 years ago
parent 156e1396f2
commit 203db47b30

@ -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;
} }

Loading…
Cancel
Save