Skip to content
Open
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: 2 additions & 2 deletions apps/sharebymail/lib/ShareByMailProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ protected function sendEmail(IShare $share, array $emails): void {
}

$emailTemplate->addBodyButton(
$this->l->t('Open %s', [$filename]),
$this->l->t('Open shared item'),
$link
);

Expand Down Expand Up @@ -533,7 +533,7 @@ protected function sendNote(IShare $share): void {
$link = $this->urlGenerator->linkToRouteAbsolute('files_sharing.sharecontroller.showShare',
['token' => $share->getToken()]);
$emailTemplate->addBodyButton(
$this->l->t('Open %s', [$filename]),
$this->l->t('Open shared item'),
$link
);

Expand Down
12 changes: 6 additions & 6 deletions apps/sharebymail/tests/ShareByMailProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,7 @@ public function testSendMailNotificationWithSameUserAndUserEmail(): void {
->expects($this->once())
->method('addBodyButton')
->with(
'Open file.txt',
'Open shared item',
'https://example.com/file.txt'
);
$message
Expand Down Expand Up @@ -1426,7 +1426,7 @@ public function testSendMailNotificationWithSameUserAndUserEmailAndNote(): void
->expects($this->once())
->method('addBodyButton')
->with(
'Open file.txt',
'Open shared item',
'https://example.com/file.txt'
);
$message
Expand Down Expand Up @@ -1550,7 +1550,7 @@ public function testSendMailNotificationWithSameUserAndUserEmailAndExpiration():
->expects($this->once())
->method('addBodyButton')
->with(
'Open file.txt',
'Open shared item',
'https://example.com/file.txt'
);
$message
Expand Down Expand Up @@ -1654,7 +1654,7 @@ public function testSendMailNotificationWithDifferentUserAndNoUserEmail(): void
->expects($this->once())
->method('addBodyButton')
->with(
'Open file.txt',
'Open shared item',
'https://example.com/file.txt'
);
$message
Expand Down Expand Up @@ -1748,7 +1748,7 @@ public function testSendMailNotificationWithSameUserAndUserEmailAndReplyToDesact
->expects($this->once())
->method('addBodyButton')
->with(
'Open file.txt',
'Open shared item',
'https://example.com/file.txt'
);
$message
Expand Down Expand Up @@ -1846,7 +1846,7 @@ public function testSendMailNotificationWithDifferentUserAndNoUserEmailAndReplyT
->expects($this->once())
->method('addBodyButton')
->with(
'Open file.txt',
'Open shared item',
'https://example.com/file.txt'
);
$message
Expand Down
Loading