mirror of
https://github.com/nextcloud/server.git
synced 2026-02-26 03:11:28 -05:00
Merge pull request #49994 from nextcloud/backport/49847/stable30
[stable30] fix(shares): Remove noisy text from email
This commit is contained in:
commit
16aaab3981
3 changed files with 0 additions and 32 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue