From d9151ff35c4280b8e5bbb92e33fe2b89c2bee458 Mon Sep 17 00:00:00 2001 From: Côme Chilliet Date: Tue, 25 Oct 2022 17:16:54 +0200 Subject: Get rid of all useless calls to setParsedSubject now that setRichSubject is able to do it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- apps/federatedfilesharing/lib/Notifier.php | 9 --------- 1 file changed, 9 deletions(-) (limited to 'apps/federatedfilesharing') diff --git a/apps/federatedfilesharing/lib/Notifier.php b/apps/federatedfilesharing/lib/Notifier.php index 5e57b77b64a..87c05e19e4b 100644 --- a/apps/federatedfilesharing/lib/Notifier.php +++ b/apps/federatedfilesharing/lib/Notifier.php @@ -108,10 +108,6 @@ class Notifier implements INotifier { $params[3] = $remoteInitiator['name'] . '@' . $remoteInitiator['server']; $params[4] = $remoteOwner['name'] . '@' . $remoteOwner['server']; - $notification->setParsedSubject( - $l->t('You received "%3$s" as a remote share from %4$s (%1$s) (on behalf of %5$s (%2$s))', $params) - ); - $notification->setRichSubject( $l->t('You received {share} as a remote share from {user} (on behalf of {behalf})'), [ @@ -128,11 +124,6 @@ class Notifier implements INotifier { $remoteOwner = $this->createRemoteUser($params[0]); $params[3] = $remoteOwner['name'] . '@' . $remoteOwner['server']; - $notification->setParsedSubject( - $l->t('You received "%3$s" as a remote share from %4$s (%1$s)', $params) - ); - - $notification->setRichSubject( $l->t('You received {share} as a remote share from {user}'), [ -- cgit v1.2.3