Signed-off-by: Joas Schilling <coding@schilljs.com>
* 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);
}
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],
];
}