From d2033abf961eb6a732582befd93a96b833aca759 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Mon, 7 Apr 2014 18:06:03 -0400 Subject: [PATCH] fixes unread page if you had more than 20 unread topics it was loading 40 now it will only load 21 then keep loading with infinite loading --- 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 893160ece9..93112a2524 100644 --- a/src/controllers/categories.js +++ b/src/controllers/categories.js @@ -39,7 +39,7 @@ categoriesController.popular = function(req, res, next) { categoriesController.unread = function(req, res, next) { var uid = req.user.uid; - topics.getUnreadTopics(uid, 0, 19, function (err, data) { + topics.getUnreadTopics(uid, 0, 20, function (err, data) { if(err) { return next(err); }