Skip to content

Commit 36fe377

Browse files
ArtificialOwlbackportbot[bot]
authored andcommitted
infinite members by default
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
1 parent f1a8ba5 commit 36fe377

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/Service/CircleService.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -607,12 +607,12 @@ public function isCircleFull(Circle $circle): bool {
607607
$members = $this->memberRequest->getMembers($circle->getSingleId(), null, null, $filter);
608608

609609
$limit = $this->getInt('members_limit', $circle->getSettings());
610+
if ($limit === 0) {
611+
$limit = $this->configService->getAppValueInt(ConfigService::MEMBERS_LIMIT);
612+
}
610613
if ($limit === -1) {
611614
return false;
612615
}
613-
if ($limit === 0) {
614-
$limit = $this->configService->getAppValue(ConfigService::MEMBERS_LIMIT);
615-
}
616616

617617
return (sizeof($members) >= $limit);
618618
}

lib/Service/ConfigService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ class ConfigService {
150150
self::EVENT_EXAMPLES => '0',
151151

152152
self::SELF_SIGNED_CERT => '0',
153-
self::MEMBERS_LIMIT => '50',
153+
self::MEMBERS_LIMIT => '-1',
154154
self::ACTIVITY_ON_NEW_CIRCLE => '1',
155155
self::MIGRATION_BYPASS => '0',
156156
self::MIGRATION_22 => '0',

0 commit comments

Comments
 (0)