aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2025-06-04 06:32:26 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2025-06-06 08:44:02 +0000
commit21f9ea09deeefa2d960f90c2d3e7e141beedd3e5 (patch)
tree22ec1ae61bae28a8193ff3017d38e064d30c2a5e
parente8ee8d3a27f76825ce319b9c308a7a0a932f86d3 (diff)
downloadnextcloud-server-backport/53314/stable30.tar.gz
nextcloud-server-backport/53314/stable30.zip
fix(notifications): Fix check for hasNotifiers when all apps use RegistrationContextbackport/53314/stable30
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--lib/private/Notification/Manager.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Notification/Manager.php b/lib/private/Notification/Manager.php
index 8edbca0380d..266562d9ada 100644
--- a/lib/private/Notification/Manager.php
+++ b/lib/private/Notification/Manager.php
@@ -207,7 +207,9 @@ class Manager implements IManager {
* @since 8.2.0
*/
public function hasNotifiers(): bool {
- return !empty($this->notifiers) || !empty($this->notifierClasses);
+ return !empty($this->notifiers)
+ || !empty($this->notifierClasses)
+ || (!$this->parsedRegistrationContext && !empty($this->coordinator->getRegistrationContext()->getNotifierServices()));
}
/**