From 20df6fd5cdd6fa35a2ce3ee13b6fd8307275bc0a Mon Sep 17 00:00:00 2001 From: barisusakli Date: Tue, 22 Jul 2014 18:00:59 -0400 Subject: [PATCH] small fix --- src/categories/recentreplies.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/categories/recentreplies.js b/src/categories/recentreplies.js index 62dc8929d4..47c00a0242 100644 --- a/src/categories/recentreplies.js +++ b/src/categories/recentreplies.js @@ -43,7 +43,7 @@ module.exports = function(Categories) { db.getSortedSetRevRangeByScore('categories:' + cid + ':tid', 0, -1, Infinity, Date.now(), next); }, tids: function(next) { - db.getSortedSetRevRangeByScore('categories:' + cid + ':tid', 0, Math.max(0, count - 1), Date.now(), 0, next); + db.getSortedSetRevRangeByScore('categories:' + cid + ':tid', 0, Math.max(0, count), Date.now(), 0, next); } }, function(err, results) { if (err) {