diff options
author | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2025-01-01 11:43:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-01 11:43:08 +0100 |
commit | 16aaab39818f4ea8e2a719fd2eabbaebe98a4e18 (patch) | |
tree | 6b70b715fbd224c53b70fe991a8c798f6385bd48 /apps | |
parent | fc6812bca744bacf6b74cef00075ea30d730210e (diff) | |
parent | c2b05000c70f8026527b6e773b2bdd35485b27aa (diff) | |
download | nextcloud-server-16aaab39818f4ea8e2a719fd2eabbaebe98a4e18.tar.gz nextcloud-server-16aaab39818f4ea8e2a719fd2eabbaebe98a4e18.zip |
Merge pull request #49994 from nextcloud/backport/49847/stable30
[stable30] fix(shares): Remove noisy text from email
Diffstat (limited to 'apps')
-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 d159e4ef5e0..afd9e309999 100644 --- a/apps/sharebymail/lib/ShareByMailProvider.php +++ b/apps/sharebymail/lib/ShareByMailProvider.php @@ -350,10 +350,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 92219a7e9bb..18ca9574d6f 100644 --- a/apps/sharebymail/tests/ShareByMailProviderTest.php +++ b/apps/sharebymail/tests/ShareByMailProviderTest.php @@ -1304,10 +1304,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', @@ -1412,10 +1408,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') @@ -1538,10 +1530,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()) @@ -1672,10 +1660,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', @@ -1773,10 +1757,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', @@ -1878,10 +1858,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', |