|
|
|
@ -121,10 +121,10 @@ Groups.get = function (groupName, options, callback) {
|
|
|
|
|
Groups.getOwnersAndMembers(groupName, options.uid, 0, stop, next);
|
|
|
|
|
},
|
|
|
|
|
pending: function (next) {
|
|
|
|
|
Groups.getUsersFromSet('group:' + groupName + ':pending', next);
|
|
|
|
|
Groups.getUsersFromSet('group:' + groupName + ':pending', ['username', 'userslug', 'picture'], next);
|
|
|
|
|
},
|
|
|
|
|
invited: function (next) {
|
|
|
|
|
Groups.getUsersFromSet('group:' + groupName + ':invited', next);
|
|
|
|
|
Groups.getUsersFromSet('group:' + groupName + ':invited', ['username', 'userslug', 'picture'], next);
|
|
|
|
|
},
|
|
|
|
|
isMember: async.apply(Groups.isMember, options.uid, groupName),
|
|
|
|
|
isPending: async.apply(Groups.isPending, options.uid, groupName),
|
|
|
|
|