aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Notification
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-04-10 17:26:52 +0200
committerJoas Schilling <coding@schilljs.com>2024-04-12 10:30:38 +0200
commit6545fed34ad8061c293f3975801eb4ff9eea10f2 (patch)
treed3fdbb7944c99ec812798cf9557738f67afa2263 /lib/private/Notification
parent0d0c2cdaa08f6bc8f547b437a5b046914680b3f5 (diff)
downloadnextcloud-server-6545fed34ad8061c293f3975801eb4ff9eea10f2.tar.gz
nextcloud-server-6545fed34ad8061c293f3975801eb4ff9eea10f2.zip
fix(notifications): Throw AlreadyProcessedException also from the manager when it's done
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Notification')
-rw-r--r--lib/private/Notification/Manager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Notification/Manager.php b/lib/private/Notification/Manager.php
index df9d338beb0..d31de6f7950 100644
--- a/lib/private/Notification/Manager.php
+++ b/lib/private/Notification/Manager.php
@@ -355,7 +355,7 @@ class Manager implements IManager {
$notification = $notifier->prepare($notification, $languageCode);
} catch (AlreadyProcessedException $e) {
$this->markProcessed($notification);
- throw new \InvalidArgumentException('The given notification has been processed');
+ throw $e;
} catch (UnknownNotificationException) {
continue;
} catch (\InvalidArgumentException $e) {