Skip to content

Commit 892ce04

Browse files
committed
Merge #288 [FIX NC30] Fixed share by mail notification text
2 parents d2a5454 + 9422233 commit 892ce04

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

apps/sharebymail/lib/ShareByMailProvider.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,17 @@ protected function sendEmail(IShare $share, array $emails): void {
332332
$emailTemplate->setSubject($this->l->t('%1$s shared %2$s with you', [$initiatorDisplayName, $filename]));
333333
$emailTemplate->addHeader();
334334
$emailTemplate->addHeading($this->l->t('%1$s shared %2$s with you', [$initiatorDisplayName, $filename]), false);
335+
$text = $this->l->t('%1$s shared »%2$s« with you.', [$initiatorDisplayName, $filename]);
335336

337+
if ($note !== '') {
338+
$emailTemplate->addBodyText(htmlspecialchars($note), $note);
339+
}
340+
$emailTemplate->addBodyText(
341+
htmlspecialchars($text . ' ' . $this->l->t('Click the button below to open it.')),
342+
$text
343+
);
344+
345+
/*
336346
if ($note !== '') {
337347
$emailTemplate->addBodyListItem(
338348
htmlspecialchars($note),
@@ -350,6 +360,7 @@ protected function sendEmail(IShare $share, array $emails): void {
350360
$this->getAbsoluteImagePath('caldav/time.png'),
351361
);
352362
}
363+
*/
353364

354365
$emailTemplate->addBodyButton(
355366
$this->l->t('Open %s', [$filename]),

0 commit comments

Comments
 (0)