mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-07 11:21:51 +02:00
dont show tags from cid=-1. clicking it doesnt show topics
This commit is contained in:
@@ -91,7 +91,8 @@ tagsController.getTag = async function (req, res) {
|
||||
};
|
||||
|
||||
tagsController.getTags = async function (req, res) {
|
||||
const cids = await categories.getCidsByPrivilege('categories:cid', req.uid, 'topics:read');
|
||||
let cids = await categories.getCidsByPrivilege('categories:cid', req.uid, 'topics:read');
|
||||
cids = cids.filter(cid => cid !== -1);
|
||||
const [canSearch, tags] = await Promise.all([
|
||||
privileges.global.can('search:tags', req.uid),
|
||||
topics.getCategoryTagsData(cids, 0, 99),
|
||||
|
||||
Reference in New Issue
Block a user