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:
Louis 2022-08-16 16:46:03 +02:00 committed by GitHub
parent 604c175284
commit dc5cdfb7e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}