diff options
author | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2024-12-23 15:21:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-23 15:21:25 +0100 |
commit | 4b3b09f3c44a6c68e752b102e018c6fa1e990c51 (patch) | |
tree | cbaf86d0f68295ad5c5e65765a981117b00b6e5e /apps/sharebymail | |
parent | bf86781eb692a3c8e5ad67340305b42b451dc53f (diff) | |
parent | 20215fbd095586ac7828e87bd558ed989df332f7 (diff) | |
download | nextcloud-server-4b3b09f3c44a6c68e752b102e018c6fa1e990c51.tar.gz nextcloud-server-4b3b09f3c44a6c68e752b102e018c6fa1e990c51.zip |
Merge pull request #49847 from nextcloud/removeNoisyTextEmails
fix(shares): Remove noisy text from email
Diffstat (limited to 'apps/sharebymail')
-rw-r--r-- | apps/sharebymail/lib/ShareByMailProvider.php | 4 | ||||
-rw-r--r-- | apps/sharebymail/tests/ShareByMailProviderTest.php | 24 |
2 files changed, 0 insertions, 28 deletions
diff --git a/apps/sharebymail/lib/ShareByMailProvider.php b/apps/sharebymail/lib/ShareByMailProvider.php index a9e6add2359..0f3f5a75ddd 100644 --- a/apps/sharebymail/lib/ShareByMailProvider.php +++ b/apps/sharebymail/lib/ShareByMailProvider.php @@ -352,10 +352,6 @@ class ShareByMailProvider extends DefaultShareProvider implements IShareProvider ); } - $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 f7325fc248a..05435b835e0 100644 --- a/apps/sharebymail/tests/ShareByMailProviderTest.php +++ b/apps/sharebymail/tests/ShareByMailProviderTest.php @@ -1291,10 +1291,6 @@ class ShareByMailProviderTest extends TestCase { ->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') ->with( 'Open file.txt', @@ -1399,10 +1395,6 @@ class ShareByMailProviderTest extends TestCase { ->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') @@ -1525,10 +1517,6 @@ class ShareByMailProviderTest extends TestCase { ->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()) @@ -1659,10 +1647,6 @@ class ShareByMailProviderTest extends TestCase { ->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') ->with( 'Open file.txt', @@ -1760,10 +1744,6 @@ class ShareByMailProviderTest extends TestCase { ->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') ->with( 'Open file.txt', @@ -1865,10 +1845,6 @@ class ShareByMailProviderTest extends TestCase { ->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') ->with( 'Open file.txt', |