show recent posts of child categories

v1.18.x
barisusakli 11 years ago
parent 2e16306dc2
commit 3abbeb8795

@ -126,8 +126,13 @@ categoriesController.get = function(req, res, next) {
return next(err);
}
categoryData.privileges = privileges;
next(err, categoryData);
categories.getRecentTopicReplies(categoryData.children, uid, function(err) {
if (err) {
return next(err);
}
categoryData.privileges = privileges;
next(err, categoryData);
});
});
});
},

Loading…
Cancel
Save