fix: issue where cid -1 appeared in all category searches

This commit is contained in:
Julian Lam
2024-03-21 14:01:51 -04:00
parent 17f62f249d
commit 8f131b71ee

View File

@@ -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({