mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 18:56:15 +01:00
closes #2088
This commit is contained in:
@@ -25,7 +25,11 @@ module.exports = function(Categories) {
|
||||
};
|
||||
|
||||
Categories.getRecentTopicReplies = function(categoryData, uid, callback) {
|
||||
if (!Array.isArray(categoryData) || !categoryData.length) {
|
||||
return callback(null, []);
|
||||
}
|
||||
async.map(categoryData, getRecentTopicPids, function(err, results) {
|
||||
|
||||
var pids = _.flatten(results);
|
||||
|
||||
pids = pids.filter(function(pid, index, array) {
|
||||
|
||||
Reference in New Issue
Block a user