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
This commit is contained in:
barisusakli
2014-04-07 18:06:03 -04:00
parent 54ba2d2ac3
commit d2033abf96

View File

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