Merge pull request #7255 from nextcloud/fix-missing-push-notifications

fix: missing push notifications
This commit is contained in:
Luka Trovic
2025-09-25 11:16:21 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -77,7 +77,7 @@ class Notifier implements INotifier {
*/ */
public function prepare(INotification $notification, string $languageCode): INotification { public function prepare(INotification $notification, string $languageCode): INotification {
$l = $this->l10nFactory->get('deck', $languageCode); $l = $this->l10nFactory->get('deck', $languageCode);
if ($notification->getApp() !== 'deck') { if ($notification->getApp() !== 'deck' || $notification->getObjectType() === 'activity_notification') {
throw new UnknownNotificationException(); throw new UnknownNotificationException();
} }
$notification->setIcon($this->url->getAbsoluteURL($this->url->imagePath('deck', 'deck-dark.svg'))); $notification->setIcon($this->url->getAbsoluteURL($this->url->imagePath('deck', 'deck-dark.svg')));

View File

@@ -1 +1 @@
81373 82773