Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(shares): Remove noisy text from email #49847

Merged
merged 1 commit into from
Dec 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions apps/sharebymail/lib/ShareByMailProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,6 @@ protected function sendEmail(IShare $share, array $emails): void {
);
}

$emailTemplate->addBodyText(
$this->l->t('Click the button below to open it.')
);

$emailTemplate->addBodyButton(
$this->l->t('Open %s', [$filename]),
$link
Expand Down
24 changes: 0 additions & 24 deletions apps/sharebymail/tests/ShareByMailProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1289,10 +1289,6 @@ public function testSendMailNotificationWithSameUserAndUserEmail(): void {
->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')
Expand Down Expand Up @@ -1399,10 +1395,6 @@ public function testSendMailNotificationWithSameUserAndUserEmailAndNote(): void
->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')
Expand Down Expand Up @@ -1525,10 +1517,6 @@ public function testSendMailNotificationWithSameUserAndUserEmailAndExpiration():
->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())
Expand Down Expand Up @@ -1657,10 +1645,6 @@ public function testSendMailNotificationWithDifferentUserAndNoUserEmail(): void
->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')
Expand Down Expand Up @@ -1758,10 +1742,6 @@ public function testSendMailNotificationWithSameUserAndUserEmailAndReplyToDesact
->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')
Expand Down Expand Up @@ -1863,10 +1843,6 @@ public function testSendMailNotificationWithDifferentUserAndNoUserEmailAndReplyT
->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')
Expand Down
4 changes: 0 additions & 4 deletions lib/private/Share20/DefaultShareProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -1520,10 +1520,6 @@ protected function sendUserShareMail(
$emailTemplate->addBodyText(htmlspecialchars($note), $note);
}

$emailTemplate->addBodyText(
$l->t('Click the button below to open it.')
);

$emailTemplate->addBodyButton(
$l->t('Open %s', [$filename]),
$link
Expand Down
Loading