mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 18:56:15 +01:00
fix recent replies
This commit is contained in:
@@ -103,7 +103,10 @@ module.exports = function(Categories) {
|
||||
|
||||
pids = pids.concat(topicPids).filter(function(pid, index, array) {
|
||||
return !!pid && array.indexOf(pid) === index;
|
||||
});
|
||||
}).sort(function(a, b) {
|
||||
return b - a;
|
||||
}).slice(0, count);
|
||||
|
||||
callback(null, pids);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user