mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Increase the fair-use push limit to 1.000 users
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
b4bccf1ea3
commit
30e72fe180
2 changed files with 5 additions and 5 deletions
|
|
@ -305,7 +305,7 @@ class Manager implements IManager {
|
|||
* users overload our infrastructure. For this reason we have to rate-limit the
|
||||
* use of push notifications. If you need this feature, consider using Nextcloud Enterprise.
|
||||
*/
|
||||
$isFairUse = $this->subscription->delegateHasValidSubscription() || $this->userManager->countSeenUsers() < 500;
|
||||
$isFairUse = $this->subscription->delegateHasValidSubscription() || $this->userManager->countSeenUsers() < 1000;
|
||||
$pushAllowed = $isFairUse ? 'yes' : 'no';
|
||||
$this->cache->set('push_fair_use', $pushAllowed, 3600);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -248,10 +248,10 @@ class ManagerTest extends TestCase {
|
|||
|
||||
public function dataIsFairUseOfFreePushService(): array {
|
||||
return [
|
||||
[true, 499, true],
|
||||
[true, 500, true],
|
||||
[false, 499, true],
|
||||
[false, 500, false],
|
||||
[true, 999, true],
|
||||
[true, 1000, true],
|
||||
[false, 999, true],
|
||||
[false, 1000, false],
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue