diff --git a/apps/sharebymail/lib/ShareByMailProvider.php b/apps/sharebymail/lib/ShareByMailProvider.php index f604cebc17a5a..c2cd1a2f0337c 100644 --- a/apps/sharebymail/lib/ShareByMailProvider.php +++ b/apps/sharebymail/lib/ShareByMailProvider.php @@ -359,7 +359,7 @@ protected function sendEmail(IShare $share, array $emails): void { } $emailTemplate->addBodyButton( - $this->l->t('Open %s', [$filename]), + $this->l->t('Open shared item'), $link ); @@ -533,7 +533,7 @@ protected function sendNote(IShare $share): void { $link = $this->urlGenerator->linkToRouteAbsolute('files_sharing.sharecontroller.showShare', ['token' => $share->getToken()]); $emailTemplate->addBodyButton( - $this->l->t('Open %s', [$filename]), + $this->l->t('Open shared item'), $link ); diff --git a/apps/sharebymail/tests/ShareByMailProviderTest.php b/apps/sharebymail/tests/ShareByMailProviderTest.php index af1ab888f71df..aa42a9ccc63af 100644 --- a/apps/sharebymail/tests/ShareByMailProviderTest.php +++ b/apps/sharebymail/tests/ShareByMailProviderTest.php @@ -1307,7 +1307,7 @@ public function testSendMailNotificationWithSameUserAndUserEmail(): void { ->expects($this->once()) ->method('addBodyButton') ->with( - 'Open file.txt', + 'Open shared item', 'https://example.com/file.txt' ); $message @@ -1426,7 +1426,7 @@ public function testSendMailNotificationWithSameUserAndUserEmailAndNote(): void ->expects($this->once()) ->method('addBodyButton') ->with( - 'Open file.txt', + 'Open shared item', 'https://example.com/file.txt' ); $message @@ -1550,7 +1550,7 @@ public function testSendMailNotificationWithSameUserAndUserEmailAndExpiration(): ->expects($this->once()) ->method('addBodyButton') ->with( - 'Open file.txt', + 'Open shared item', 'https://example.com/file.txt' ); $message @@ -1654,7 +1654,7 @@ public function testSendMailNotificationWithDifferentUserAndNoUserEmail(): void ->expects($this->once()) ->method('addBodyButton') ->with( - 'Open file.txt', + 'Open shared item', 'https://example.com/file.txt' ); $message @@ -1748,7 +1748,7 @@ public function testSendMailNotificationWithSameUserAndUserEmailAndReplyToDesact ->expects($this->once()) ->method('addBodyButton') ->with( - 'Open file.txt', + 'Open shared item', 'https://example.com/file.txt' ); $message @@ -1846,7 +1846,7 @@ public function testSendMailNotificationWithDifferentUserAndNoUserEmailAndReplyT ->expects($this->once()) ->method('addBodyButton') ->with( - 'Open file.txt', + 'Open shared item', 'https://example.com/file.txt' ); $message