Skip to content

Commit

Permalink
fix(share): Don't print twice the same information
Browse files Browse the repository at this point in the history
Signed-off-by: Git'Fellow <[email protected]>
  • Loading branch information
solracsf committed Dec 10, 2024
1 parent 5af0d13 commit aa5a0ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions apps/sharebymail/lib/ShareByMailProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,7 @@ protected function sendEmail(IShare $share, array $emails): void {
}

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

$emailTemplate->addBodyButton(
Expand Down
4 changes: 2 additions & 2 deletions lib/private/Share20/DefaultShareProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -1522,9 +1522,9 @@ protected function sendUserShareMail(
}

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

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

0 comments on commit aa5a0ab

Please sign in to comment.