|
|
@ -758,11 +758,10 @@ var async = require('async'),
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
Groups.getLatestMemberPosts = function(groupName, max, uid, callback) {
|
|
|
|
Groups.getLatestMemberPosts = function(groupSlug, max, uid, callback) {
|
|
|
|
async.waterfall([
|
|
|
|
async.waterfall([
|
|
|
|
function(next) {
|
|
|
|
async.apply(Groups.getGroupNameByGroupSlug, groupSlug),
|
|
|
|
Groups.getMembers(groupName, next);
|
|
|
|
Groups.getMembers,
|
|
|
|
},
|
|
|
|
|
|
|
|
function(uids, next) {
|
|
|
|
function(uids, next) {
|
|
|
|
if (!Array.isArray(uids) || !uids.length) {
|
|
|
|
if (!Array.isArray(uids) || !uids.length) {
|
|
|
|
return callback(null, []);
|
|
|
|
return callback(null, []);
|
|
|
|