diff --git a/lib/Notification/Notifier.php b/lib/Notification/Notifier.php index 22d8b86..4b8ed91 100644 --- a/lib/Notification/Notifier.php +++ b/lib/Notification/Notifier.php @@ -78,10 +78,15 @@ public function prepare(INotification $notification, $languageCode) { $announcement = $this->manager->getAnnouncement($notification->getObjectId(), false); $params[] = str_replace("\n", ' ', $announcement['subject']); - $notification->setParsedMessage($announcement['message']) - ->setParsedSubject( + // only set message if present + if(!empty($announcement['message'])) { + $notification->setParsedMessage($announcement['message']); + } + + $notification->setParsedSubject( (string) $l->t('%1$s announced ā€œ%2$sā€', $params) ); + return $notification; default: