Merge branch '0.5.1' into csrf-excision

This commit is contained in:
Julian Lam
2014-09-17 14:39:51 -04:00
282 changed files with 2219 additions and 473 deletions

View File

@@ -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);
});