mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 20:45:58 +01:00
recent replies part 2
This commit is contained in:
@@ -259,7 +259,11 @@ var RDB = require('./redis.js'),
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Categories.getRecentReplies = function(cid, callback) {
|
||||
RDB.zrange('categories:recent_posts:cid:' + cid, 0, -1, function(err, replies) {
|
||||
callback(replies);
|
||||
});
|
||||
}
|
||||
|
||||
Categories.getCategories = function(cids, callback, current_user) {
|
||||
if (cids.length === 0) {
|
||||
|
||||
Reference in New Issue
Block a user