mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Remove time check in isFairUseOfFreePushService
What the TODO say, the dev does. Signed-off-by: Louis <6653109+artonge@users.noreply.github.com>
This commit is contained in:
parent
604c175284
commit
dc5cdfb7e3
1 changed files with 1 additions and 4 deletions
|
|
@ -310,10 +310,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.
|
||||
*/
|
||||
// TODO Remove time check after 1st March 2022
|
||||
$isFairUse = $this->timeFactory->getTime() < 1646089200
|
||||
|| $this->subscription->delegateHasValidSubscription()
|
||||
|| $this->userManager->countSeenUsers() < 5000;
|
||||
$isFairUse = $this->subscription->delegateHasValidSubscription() || $this->userManager->countSeenUsers() < 5000;
|
||||
$pushAllowed = $isFairUse ? 'yes' : 'no';
|
||||
$this->cache->set('push_fair_use', $pushAllowed, 3600);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue