diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-10-25 17:16:54 +0200 |
---|---|---|
committer | Côme Chilliet (Rebase PR Action) <come-nc@users.noreply.github.com> | 2022-11-29 14:36:29 +0000 |
commit | d9151ff35c4280b8e5bbb92e33fe2b89c2bee458 (patch) | |
tree | c0b5864c0c667156b82763382b4541d1fa073d37 /apps/updatenotification | |
parent | db995d464d06ace8231c41633287ce689b7d33b1 (diff) | |
download | nextcloud-server-d9151ff35c4280b8e5bbb92e33fe2b89c2bee458.tar.gz nextcloud-server-d9151ff35c4280b8e5bbb92e33fe2b89c2bee458.zip |
Get rid of all useless calls to setParsedSubject now that setRichSubject is able to do it
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/updatenotification')
-rw-r--r-- | apps/updatenotification/lib/Notification/Notifier.php | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/apps/updatenotification/lib/Notification/Notifier.php b/apps/updatenotification/lib/Notification/Notifier.php index bfbcc203480..abba20f993b 100644 --- a/apps/updatenotification/lib/Notification/Notifier.php +++ b/apps/updatenotification/lib/Notification/Notifier.php @@ -39,7 +39,6 @@ use OCP\Notification\INotifier; use OCP\Util; class Notifier implements INotifier { - /** @var IURLGenerator */ protected $url; @@ -141,14 +140,13 @@ 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()])) - ->setRichSubject($l->t('Update for {app} to version %s is available.', [$notification->getObjectId()]), [ - 'app' => [ - 'type' => 'app', - 'id' => $notification->getObjectType(), - 'name' => $appName, - ] - ]); + $notification->setRichSubject($l->t('Update for {app} to version %s is available.', [$notification->getObjectId()]), [ + 'app' => [ + 'type' => 'app', + 'id' => $notification->getObjectType(), + 'name' => $appName, + ] + ]); if ($this->isAdmin()) { $notification->setLink($this->url->linkToRouteAbsolute('settings.AppSettings.viewApps', ['category' => 'updates']) . '#app-' . $notification->getObjectType()); |