only get 25 posts

This commit is contained in:
barisusakli
2014-09-06 02:34:39 -04:00
parent 099a04c1c8
commit 51cafe075c

View File

@@ -8,7 +8,7 @@ module.exports = function(Categories) {
Categories.getActiveUsers = function(cid, callback) {
async.waterfall([
function(next) {
db.getSortedSetRevRange('categories:recent_posts:cid:' + cid, 0, 49, next);
db.getSortedSetRevRange('categories:recent_posts:cid:' + cid, 0, 24, next);
},
function(pids, next) {
var keys = pids.map(function(pid) {