mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
minor tweak to retrieval of category listing in ACP so that hidden categories (those with order of -1) are not retrieved
This commit is contained in:
@@ -154,7 +154,7 @@ adminController.categories.getAll = function(req, res, next) {
|
||||
disabled = [];
|
||||
|
||||
async.waterfall([
|
||||
async.apply(db.getSortedSetRange, 'categories:cid', 0, -1),
|
||||
async.apply(db.getSortedSetRangeByScore, 'categories:cid', 0, -1, 0, Date.now()),
|
||||
async.apply(categories.getCategoriesData),
|
||||
function(categories, next) {
|
||||
plugins.fireHook('filter:admin.categories.get', {req: req, res: res, categories: categories}, next);
|
||||
|
||||
Reference in New Issue
Block a user