mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 15:30:39 +01:00
feat: add filter:categories.getRecentTopicReplies
pass req.query to getRecentTopicReplies
This commit is contained in:
@@ -88,7 +88,7 @@ categoryController.get = async function (req, res, next) {
|
||||
if (categoryData.children.length) {
|
||||
const allCategories = [];
|
||||
categories.flattenCategories(allCategories, categoryData.children);
|
||||
await categories.getRecentTopicReplies(allCategories, req.uid);
|
||||
await categories.getRecentTopicReplies(allCategories, req.uid, req.query);
|
||||
}
|
||||
|
||||
categoryData.title = translator.escape(categoryData.name);
|
||||
|
||||
Reference in New Issue
Block a user