fixed recent replies order. closes #27

This commit is contained in:
Baris Soner Usakli
2013-06-21 16:46:31 -04:00
parent 74563ea21e
commit f49fc234c1

View File

@@ -268,7 +268,7 @@ var RDB = require('./redis.js'),
}
Categories.getRecentReplies = function(cid, callback) {
RDB.zrange('categories:recent_posts:cid:' + cid, 0, 4, function(err, pids) {
RDB.zrevrange('categories:recent_posts:cid:' + cid, 0, 4, function(err, pids) {
if (pids.length == 0) {
callback(false);
return;