Skip to content

Commit 4b3b09f

Browse files
authored
Merge pull request #49847 from nextcloud/removeNoisyTextEmails
fix(shares): Remove noisy text from email
2 parents bf86781 + 20215fb commit 4b3b09f

File tree

3 files changed

+0
-32
lines changed

3 files changed

+0
-32
lines changed

apps/sharebymail/lib/ShareByMailProvider.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -352,10 +352,6 @@ protected function sendEmail(IShare $share, array $emails): void {
352352
);
353353
}
354354

355-
$emailTemplate->addBodyText(
356-
$this->l->t('Click the button below to open it.')
357-
);
358-
359355
$emailTemplate->addBodyButton(
360356
$this->l->t('Open %s', [$filename]),
361357
$link

apps/sharebymail/tests/ShareByMailProviderTest.php

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,10 +1289,6 @@ public function testSendMailNotificationWithSameUserAndUserEmail(): void {
12891289
->expects($this->once())
12901290
->method('addHeading')
12911291
->with('Mrs. Owner User shared file.txt with you');
1292-
$template
1293-
->expects($this->once())
1294-
->method('addBodyText')
1295-
->with('Click the button below to open it.');
12961292
$template
12971293
->expects($this->once())
12981294
->method('addBodyButton')
@@ -1399,10 +1395,6 @@ public function testSendMailNotificationWithSameUserAndUserEmailAndNote(): void
13991395
->expects($this->once())
14001396
->method('addHeading')
14011397
->with('Mrs. Owner User shared file.txt with you');
1402-
$template
1403-
->expects($this->once())
1404-
->method('addBodyText')
1405-
->with('Click the button below to open it.');
14061398

14071399
$this->urlGenerator->expects($this->once())->method('imagePath')
14081400
->with('core', 'caldav/description.png')
@@ -1525,10 +1517,6 @@ public function testSendMailNotificationWithSameUserAndUserEmailAndExpiration():
15251517
->expects($this->once())
15261518
->method('addHeading')
15271519
->with('Mrs. Owner User shared file.txt with you');
1528-
$template
1529-
->expects($this->once())
1530-
->method('addBodyText')
1531-
->with('Click the button below to open it.');
15321520

15331521
$expiration = new DateTime('2001-01-01');
15341522
$this->l->expects($this->once())
@@ -1657,10 +1645,6 @@ public function testSendMailNotificationWithDifferentUserAndNoUserEmail(): void
16571645
->expects($this->once())
16581646
->method('addHeading')
16591647
->with('Mr. Initiator User shared file.txt with you');
1660-
$template
1661-
->expects($this->once())
1662-
->method('addBodyText')
1663-
->with('Click the button below to open it.');
16641648
$template
16651649
->expects($this->once())
16661650
->method('addBodyButton')
@@ -1758,10 +1742,6 @@ public function testSendMailNotificationWithSameUserAndUserEmailAndReplyToDesact
17581742
->expects($this->once())
17591743
->method('addHeading')
17601744
->with('Mrs. Owner User shared file.txt with you');
1761-
$template
1762-
->expects($this->once())
1763-
->method('addBodyText')
1764-
->with('Click the button below to open it.');
17651745
$template
17661746
->expects($this->once())
17671747
->method('addBodyButton')
@@ -1863,10 +1843,6 @@ public function testSendMailNotificationWithDifferentUserAndNoUserEmailAndReplyT
18631843
->expects($this->once())
18641844
->method('addHeading')
18651845
->with('Mr. Initiator User shared file.txt with you');
1866-
$template
1867-
->expects($this->once())
1868-
->method('addBodyText')
1869-
->with('Click the button below to open it.');
18701846
$template
18711847
->expects($this->once())
18721848
->method('addBodyButton')

lib/private/Share20/DefaultShareProvider.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,10 +1520,6 @@ protected function sendUserShareMail(
15201520
$emailTemplate->addBodyText(htmlspecialchars($note), $note);
15211521
}
15221522

1523-
$emailTemplate->addBodyText(
1524-
$l->t('Click the button below to open it.')
1525-
);
1526-
15271523
$emailTemplate->addBodyButton(
15281524
$l->t('Open %s', [$filename]),
15291525
$link

0 commit comments

Comments
 (0)