diff options
-rw-r--r-- | apps/settings/lib/Controller/CheckSetupController.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/settings/lib/Controller/CheckSetupController.php b/apps/settings/lib/Controller/CheckSetupController.php index b2da455bc11..4d541be658f 100644 --- a/apps/settings/lib/Controller/CheckSetupController.php +++ b/apps/settings/lib/Controller/CheckSetupController.php @@ -190,6 +190,11 @@ class CheckSetupController extends Controller { * @return bool */ private function isFairUseOfFreePushService(): bool { + $rateLimitReached = (int) $this->config->getAppValue('notifications', 'rate_limit_reached', '0'); + if ($rateLimitReached >= (time() - 7 * 24 * 3600)) { + // Notifications app is showing a message already + return true; + } return $this->manager->isFairUseOfFreePushService(); } |