mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 02:36:16 +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));
|
({ cids, matchedCids } = await findMatchedCids(caller.uid, data));
|
||||||
} else {
|
} else {
|
||||||
cids = await loadCids(caller.uid, data.parentCid);
|
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({
|
const visibleCategories = await controllersHelpers.getVisibleCategories({
|
||||||
|
|||||||
Reference in New Issue
Block a user