From b2f8a65bc87724c9cb6beb90d3bce21034ed2801 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Fri, 15 Aug 2014 18:12:43 -0400 Subject: [PATCH] removed slice --- src/controllers/categories.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/categories.js b/src/controllers/categories.js index 398ec070aa..3f059b80af 100644 --- a/src/controllers/categories.js +++ b/src/controllers/categories.js @@ -47,7 +47,7 @@ categoriesController.unread = function(req, res, next) { if (err) { return next(err); } - data.topics = data.topics.slice(0, parseInt(meta.config.topicsPerList, 10) || 20); + res.render('unread', data); }); };