diff options
author | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2022-12-19 10:46:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-19 10:46:39 +0100 |
commit | cbbb0712db0f33a41ef66ae59d5c70ba1e23748f (patch) | |
tree | db09b311f4a6a62451dd25db25ae9f8e80a3064c /apps/federatedfilesharing | |
parent | 884da19198d15a764487e6a6d615968c0e63203d (diff) | |
parent | e553cd1bb9cec6bf6200298bcca6637e81163953 (diff) | |
download | nextcloud-server-cbbb0712db0f33a41ef66ae59d5c70ba1e23748f.tar.gz nextcloud-server-cbbb0712db0f33a41ef66ae59d5c70ba1e23748f.zip |
Merge pull request #34807 from nextcloud/fix/compute-notification-parsed-subject
Compute notification parsed subject from rich subject when possible
Diffstat (limited to 'apps/federatedfilesharing')
-rw-r--r-- | apps/federatedfilesharing/lib/Notifier.php | 9 |
1 files changed, 0 insertions, 9 deletions
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}'), [ |