fix(shares): Remove noisy text from emails

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
This commit is contained in:
Git'Fellow 2024-12-13 14:17:32 +01:00 committed by backportbot[bot]
parent 999f5dee00
commit c2b05000c7
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