diff options
author | Joas Schilling <coding@schilljs.com> | 2022-04-06 16:10:15 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-04-06 16:37:54 +0300 |
commit | eb58aa6171bad920b0ddc3fc2404e35c0ca31f94 (patch) | |
tree | e56c44d89617ed3529a77c87be5eaff854c26cd6 /lib | |
parent | f7505e0d59b8343bc0405286fdf9c8b4da27d3dc (diff) |
Remove notifications for deleted messages
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Notification/Notifier.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php index 6760dc9c8..8fffb285d 100644 --- a/lib/Notification/Notifier.php +++ b/lib/Notification/Notifier.php @@ -378,6 +378,10 @@ class Notifier implements INotifier { throw new AlreadyProcessedException(); } + if ($message->getMessageType() === 'comment_deleted') { + throw new AlreadyProcessedException(); + } + $placeholders = $replacements = []; foreach ($message->getMessageParameters() as $placeholder => $parameter) { $placeholders[] = '{' . $placeholder . '}'; |