mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-08 18:02:39 +02:00
Child categories no longer show up on homepage, re: #2080
This commit is contained in:
@@ -69,6 +69,11 @@ Controllers.home = function(req, res, next) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
// Remove child categories, as they don't belong on the home page
|
||||
categoryData = categoryData.filter(function(categoryObj) {
|
||||
return !categoryObj.parent;
|
||||
});
|
||||
|
||||
categories.getRecentTopicReplies(categoryData, uid, function(err) {
|
||||
next(err, categoryData);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user