aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorLouis <6653109+artonge@users.noreply.github.com>2022-08-16 16:46:03 +0200
committerGitHub <noreply@github.com>2022-08-16 16:46:03 +0200
commitdc5cdfb7e3291d79735daf7cacae1988d3c5f1c6 (patch)
treeca3fadcba6b4f0bc843bf5ca2906ed04d8af05d6 /lib/private
parent604c1752845df068a7dd5d168abfbfc04065ac3f (diff)
downloadnextcloud-server-dc5cdfb7e3291d79735daf7cacae1988d3c5f1c6.tar.gz
nextcloud-server-dc5cdfb7e3291d79735daf7cacae1988d3c5f1c6.zip
Remove time check in isFairUseOfFreePushService
What the TODO say, the dev does. Signed-off-by: Louis <6653109+artonge@users.noreply.github.com>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Notification/Manager.php5
1 files changed, 1 insertions, 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);
}