mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	Merge branch '0.5.1' into csrf-excision
This commit is contained in:
		| @@ -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); | ||||
| 				}); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user