Node.js based forum software built for the modern web
fix: dont load cid=-1 in tag filter dropdown
Barış Soner Uşaklı7d679db28e17
diff --git a/src/socket.io/topics/tags.js b/src/socket.io/topics/tags.jsindex c5d2695692..ebcbfd405a 100644--- a/src/socket.io/topics/tags.js+++ b/src/socket.io/topics/tags.js@@ -79,6 +79,7 @@ module.exports = function (SocketTopics) {cids = await privileges.categories.filterCids('topics:read', data.cids, socket.uid);} else { // if no cids passed in get all cids we can readcids = await categories.getCidsByPrivilege('categories:cid', socket.uid, 'topics:read');+ cids = cids.filter(cid => cid !== -1);}let tags = [];