Merge pull request #665 from nextcloud/enh/noid/no-limit-to-circles

infinite members by default
This commit is contained in:
Maxence Lange 2021-07-01 21:59:19 -01:00 committed by GitHub
commit ab2d4f3039
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -607,12 +607,12 @@ class CircleService {
$members = $this->memberRequest->getMembers($circle->getSingleId(), null, null, $filter);
$limit = $this->getInt('members_limit', $circle->getSettings());
if ($limit === 0) {
$limit = $this->configService->getAppValueInt(ConfigService::MEMBERS_LIMIT);
}
if ($limit === -1) {
return false;
}
if ($limit === 0) {
$limit = $this->configService->getAppValue(ConfigService::MEMBERS_LIMIT);
}
return (sizeof($members) >= $limit);
}

View file

@ -150,7 +150,7 @@ class ConfigService {
self::EVENT_EXAMPLES => '0',
self::SELF_SIGNED_CERT => '0',
self::MEMBERS_LIMIT => '50',
self::MEMBERS_LIMIT => '-1',
self::ACTIVITY_ON_NEW_CIRCLE => '1',
self::MIGRATION_BYPASS => '0',
self::MIGRATION_22 => '0',