mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 05:05:58 +02:00
closes #4499
This commit is contained in:
@@ -349,7 +349,9 @@ var utils = require('../public/src/utils');
|
||||
|
||||
Groups.getLatestMemberPosts = function(groupName, max, uid, callback) {
|
||||
async.waterfall([
|
||||
async.apply(Groups.getMembers, groupName, 0, -1),
|
||||
function(next) {
|
||||
Groups.getMembers(groupName, 0, -1, next);
|
||||
},
|
||||
function(uids, next) {
|
||||
if (!Array.isArray(uids) || !uids.length) {
|
||||
return callback(null, []);
|
||||
|
||||
Reference in New Issue
Block a user