From dc5cdfb7e3291d79735daf7cacae1988d3c5f1c6 Mon Sep 17 00:00:00 2001 From: Louis <6653109+artonge@users.noreply.github.com> Date: Tue, 16 Aug 2022 16:46:03 +0200 Subject: [PATCH] Remove time check in isFairUseOfFreePushService What the TODO say, the dev does. Signed-off-by: Louis <6653109+artonge@users.noreply.github.com> --- lib/private/Notification/Manager.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/private/Notification/Manager.php b/lib/private/Notification/Manager.php index c707884355b..0bdb8302a10 100644 --- a/lib/private/Notification/Manager.php +++ b/lib/private/Notification/Manager.php @@ -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); }