From 13af0d85ae0178bacafe38633cf71634bb59a091 Mon Sep 17 00:00:00 2001 From: dartcafe Date: Mon, 10 Jan 2022 17:39:04 +0100 Subject: [PATCH] skip and remove notification on exception Signed-off-by: dartcafe --- lib/Notification/Notifier.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php index 697ef79a8..daffc231f 100644 --- a/lib/Notification/Notifier.php +++ b/lib/Notification/Notifier.php @@ -118,9 +118,8 @@ class Notifier implements INotifier { $pollTitle = $poll->getTitle(); $notification->setLink($poll->getVoteUrl()); } catch (DoesNotExistException $e) { - $poll = null; - $pollTitle = $parameters['pollTitle']; - $actor = $this->getActor($parameters['actor']); + $this->notificationService->removeNotification($notification->getObjectId()); + return $notification; } if (isset($actor['actor'])) {