mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +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);
|
return next(err);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
categories.getRecentTopicReplies(categoryData.children, uid, function(err) {
|
||||||
|
if (err) {
|
||||||
|
return next(err);
|
||||||
|
}
|
||||||
categoryData.privileges = privileges;
|
categoryData.privileges = privileges;
|
||||||
next(err, categoryData);
|
next(err, categoryData);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
});
|
||||||
},
|
},
|
||||||
function (categoryData, next) {
|
function (categoryData, next) {
|
||||||
res.locals.metaTags = [
|
res.locals.metaTags = [
|
||||||
|
|||||||
Reference in New Issue
Block a user