diff --git a/apps/sharebymail/lib/ShareByMailProvider.php b/apps/sharebymail/lib/ShareByMailProvider.php index d159e4ef5e09f..afd9e309999c6 100644 --- a/apps/sharebymail/lib/ShareByMailProvider.php +++ b/apps/sharebymail/lib/ShareByMailProvider.php @@ -350,10 +350,6 @@ protected function sendEmail(IShare $share, array $emails): void { ); } - $emailTemplate->addBodyText( - $this->l->t('Click the button below to open it.') - ); - $emailTemplate->addBodyButton( $this->l->t('Open %s', [$filename]), $link diff --git a/apps/sharebymail/tests/ShareByMailProviderTest.php b/apps/sharebymail/tests/ShareByMailProviderTest.php index 92219a7e9bb9e..18ca9574d6f05 100644 --- a/apps/sharebymail/tests/ShareByMailProviderTest.php +++ b/apps/sharebymail/tests/ShareByMailProviderTest.php @@ -1302,10 +1302,6 @@ public function testSendMailNotificationWithSameUserAndUserEmail() { ->expects($this->once()) ->method('addHeading') ->with('Mrs. Owner User shared file.txt with you'); - $template - ->expects($this->once()) - ->method('addBodyText') - ->with('Click the button below to open it.'); $template ->expects($this->once()) ->method('addBodyButton') @@ -1412,10 +1408,6 @@ public function testSendMailNotificationWithSameUserAndUserEmailAndNote() { ->expects($this->once()) ->method('addHeading') ->with('Mrs. Owner User shared file.txt with you'); - $template - ->expects($this->once()) - ->method('addBodyText') - ->with('Click the button below to open it.'); $this->urlGenerator->expects($this->once())->method('imagePath') ->with('core', 'caldav/description.png') @@ -1538,10 +1530,6 @@ public function testSendMailNotificationWithSameUserAndUserEmailAndExpiration() ->expects($this->once()) ->method('addHeading') ->with('Mrs. Owner User shared file.txt with you'); - $template - ->expects($this->once()) - ->method('addBodyText') - ->with('Click the button below to open it.'); $expiration = new DateTime('2001-01-01'); $this->l->expects($this->once()) @@ -1670,10 +1658,6 @@ public function testSendMailNotificationWithDifferentUserAndNoUserEmail() { ->expects($this->once()) ->method('addHeading') ->with('Mr. Initiator User shared file.txt with you'); - $template - ->expects($this->once()) - ->method('addBodyText') - ->with('Click the button below to open it.'); $template ->expects($this->once()) ->method('addBodyButton') @@ -1771,10 +1755,6 @@ public function testSendMailNotificationWithSameUserAndUserEmailAndReplyToDesact ->expects($this->once()) ->method('addHeading') ->with('Mrs. Owner User shared file.txt with you'); - $template - ->expects($this->once()) - ->method('addBodyText') - ->with('Click the button below to open it.'); $template ->expects($this->once()) ->method('addBodyButton') @@ -1876,10 +1856,6 @@ public function testSendMailNotificationWithDifferentUserAndNoUserEmailAndReplyT ->expects($this->once()) ->method('addHeading') ->with('Mr. Initiator User shared file.txt with you'); - $template - ->expects($this->once()) - ->method('addBodyText') - ->with('Click the button below to open it.'); $template ->expects($this->once()) ->method('addBodyButton') diff --git a/lib/private/Share20/DefaultShareProvider.php b/lib/private/Share20/DefaultShareProvider.php index 00b8ed8070def..955eb187c4661 100644 --- a/lib/private/Share20/DefaultShareProvider.php +++ b/lib/private/Share20/DefaultShareProvider.php @@ -1515,10 +1515,6 @@ protected function sendUserShareMail( $emailTemplate->addBodyText(htmlspecialchars($note), $note); } - $emailTemplate->addBodyText( - $l->t('Click the button below to open it.') - ); - $emailTemplate->addBodyButton( $l->t('Open %s', [$filename]), $link