Limiting group members here

Refactor incoming. @barisusakli
This commit is contained in:
psychobunny
2017-04-29 03:44:55 -04:00
committed by GitHub
parent cd2aac9d28
commit 5b4dcfafe2

View File

@@ -10,7 +10,7 @@ module.exports = function (Groups) {
Groups.getLatestMemberPosts = function (groupName, max, uid, callback) {
async.waterfall([
function (next) {
Groups.getMembers(groupName, 0, -1, next);
Groups.getMembers(groupName, 0, 100, next);
},
function (uids, next) {
if (!Array.isArray(uids) || !uids.length) {