mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
show recent posts of child categories
This commit is contained in:
@@ -126,10 +126,15 @@ categoriesController.get = function(req, res, next) {
|
||||
return next(err);
|
||||
}
|
||||
|
||||
categories.getRecentTopicReplies(categoryData.children, uid, function(err) {
|
||||
if (err) {
|
||||
return next(err);
|
||||
}
|
||||
categoryData.privileges = privileges;
|
||||
next(err, categoryData);
|
||||
});
|
||||
});
|
||||
});
|
||||
},
|
||||
function (categoryData, next) {
|
||||
res.locals.metaTags = [
|
||||
|
||||
Reference in New Issue
Block a user