diff --git a/lib/Push.php b/lib/Push.php index 43bcea393..91344c4c2 100644 --- a/lib/Push.php +++ b/lib/Push.php @@ -303,10 +303,10 @@ public function pushToDevice(int $id, INotification $notification, ?OutputInterf $this->printInfo('Trying to push to ' . count($devices) . ' devices'); $this->printInfo(''); - $language = $this->l10nFactory->getUserLanguage($user); - $this->printInfo('Language is set to ' . $language); - if (!$notification->isValidParsed()) { + $language = $this->l10nFactory->getUserLanguage($user); + $this->printInfo('Language is set to ' . $language); + try { $this->notificationManager->setPreparingPushNotification(true); $notification = $this->notificationManager->prepare($notification, $language);