diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php index e0dd92e49..7e7ea0c59 100644 --- a/lib/Notification/Notifier.php +++ b/lib/Notification/Notifier.php @@ -77,7 +77,7 @@ class Notifier implements INotifier { */ public function prepare(INotification $notification, string $languageCode): INotification { $l = $this->l10nFactory->get('deck', $languageCode); - if ($notification->getApp() !== 'deck') { + if ($notification->getApp() !== 'deck' || $notification->getObjectType() === 'activity_notification') { throw new UnknownNotificationException(); } $notification->setIcon($this->url->getAbsoluteURL($this->url->imagePath('deck', 'deck-dark.svg'))); diff --git a/tests/integration/base-query-count.txt b/tests/integration/base-query-count.txt index 1b2d28783..f66f298f8 100644 --- a/tests/integration/base-query-count.txt +++ b/tests/integration/base-query-count.txt @@ -1 +1 @@ -81373 +82773