mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 10:16:12 +01:00
fix: issue where cid -1 appeared in all category searches
This commit is contained in:
@@ -29,10 +29,9 @@ searchApi.categories = async (caller, data) => {
|
||||
({ cids, matchedCids } = await findMatchedCids(caller.uid, data));
|
||||
} else {
|
||||
cids = await loadCids(caller.uid, data.parentCid);
|
||||
}
|
||||
|
||||
if (meta.config.activitypubEnabled) {
|
||||
cids.unshift(-1);
|
||||
if (meta.config.activitypubEnabled) {
|
||||
cids.unshift(-1);
|
||||
}
|
||||
}
|
||||
|
||||
const visibleCategories = await controllersHelpers.getVisibleCategories({
|
||||
|
||||
Reference in New Issue
Block a user