summaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/lib/Notification/Notifier.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/updatenotification/lib/Notification/Notifier.php')
-rw-r--r--apps/updatenotification/lib/Notification/Notifier.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/updatenotification/lib/Notification/Notifier.php b/apps/updatenotification/lib/Notification/Notifier.php
index ccc2c2b6e29..00cc94095ca 100644
--- a/apps/updatenotification/lib/Notification/Notifier.php
+++ b/apps/updatenotification/lib/Notification/Notifier.php
@@ -84,7 +84,14 @@ class Notifier implements INotifier {
$this->updateAlreadyInstalledCheck($notification, $this->appVersions[$notification->getObjectType()]);
}
- $notification->setParsedSubject($l->t('Update for %1$s to version %2$s is available.', [$appName, $notification->getObjectId()]));
+ $notification->setParsedSubject($l->t('Update for %1$s to version %2$s is available.', [$appName, $notification->getObjectId()]))
+ ->setRichSubject($l->t('Update for {app} to version %s is available.', $notification->getObjectId()), [
+ 'app' => [
+ 'type' => 'app',
+ 'id' => $notification->getObjectType(),
+ 'name' => $appName,
+ ]
+ ]);
}
$notification->setIcon($this->url->getAbsoluteURL($this->url->imagePath('updatenotification', 'notification.svg')));