From b578a1e8b56f6b3ecf7dee837af6bd8265f9c0b0 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 20 Oct 2021 10:29:45 +0200 Subject: Fair use of push notifications We want to keep offering our push notification service for free, but large users overload our infrastructure. For this reason we have to rate-limit the use of push notifications. If you need this feature, consider setting up your own push server or using Nextcloud Enterprise. Signed-off-by: Joas Schilling --- lib/public/Support/Subscription/IRegistry.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/public/Support/Subscription/IRegistry.php') diff --git a/lib/public/Support/Subscription/IRegistry.php b/lib/public/Support/Subscription/IRegistry.php index 1082f12ab58..4a34cc91c5e 100644 --- a/lib/public/Support/Subscription/IRegistry.php +++ b/lib/public/Support/Subscription/IRegistry.php @@ -27,6 +27,7 @@ declare(strict_types=1); */ namespace OCP\Support\Subscription; +use OCP\Notification\IManager; use OCP\Support\Subscription\Exception\AlreadyRegisteredException; /** @@ -81,7 +82,8 @@ interface IRegistry { /** * Indicates if a hard user limit is reached and no new users should be created * + * @param IManager|null $notificationManager * @since 21.0.0 */ - public function delegateIsHardUserLimitReached(): bool; + public function delegateIsHardUserLimitReached(?IManager $notificationManager = null): bool; } -- cgit v1.2.3