Skip to content

Node.js based forum software built for the modern web

fixed recent replies order. closes #27

Baris Soner Usaklif49fc234c156
diff --git a/src/categories.js b/src/categories.js
index 35b980b215..bdc954030b 100644
--- a/src/categories.js
+++ b/src/categories.js
@@ -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;