mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
display all categories in custom home
This commit is contained in:
@@ -350,7 +350,7 @@ adminController.navigation.get = function(req, res, next) {
|
||||
adminController.homepage.get = function(req, res, next) {
|
||||
async.waterfall([
|
||||
function(next) {
|
||||
db.getSortedSetRange('cid:0:children', 0, -1, next);
|
||||
db.getSortedSetRange('categories:cid', 0, -1, next);
|
||||
},
|
||||
function(cids, next) {
|
||||
privileges.categories.filterCids('find', cids, 0, next);
|
||||
|
||||
Reference in New Issue
Block a user