Merge pull request #49994 from nextcloud/backport/49847/stable30

[stable30] fix(shares): Remove noisy text from email
This commit is contained in:
Git'Fellow 2025-01-01 11:43:08 +01:00 committed by GitHub
commit 16aaab3981
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 0 additions and 32 deletions

View file

@ -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

View file

@ -1302,10 +1302,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.');
$template
->expects($this->once())
->method('addBodyButton')
@ -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())
@ -1670,10 +1658,6 @@ class ShareByMailProviderTest extends TestCase {
->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 @@ 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.');
$template
->expects($this->once())
->method('addBodyButton')
@ -1876,10 +1856,6 @@ class ShareByMailProviderTest extends TestCase {
->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')

View file

@ -1515,10 +1515,6 @@ class DefaultShareProvider implements IShareProviderWithNotification, IShareProv
$emailTemplate->addBodyText(htmlspecialchars($note), $note);
}
$emailTemplate->addBodyText(
$l->t('Click the button below to open it.')
);
$emailTemplate->addBodyButton(
$l->t('Open %s', [$filename]),
$link