mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
add direct link to the share
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
parent
b56ccef564
commit
1ce519ad38
1 changed files with 7 additions and 0 deletions
|
|
@ -531,6 +531,13 @@ class ShareByMailProvider implements IShareProvider {
|
|||
$emailTemplate->addHeading(htmlspecialchars($htmlHeading), $plainHeading);
|
||||
$emailTemplate->addBodyText(htmlspecialchars($note), $note);
|
||||
|
||||
$link = $this->urlGenerator->linkToRouteAbsolute('files_sharing.sharecontroller.showShare',
|
||||
['token' => $share->getToken()]);
|
||||
$emailTemplate->addBodyButton(
|
||||
$this->l->t('Open »%s«', [$filename]),
|
||||
$link
|
||||
);
|
||||
|
||||
// The "From" contains the sharers name
|
||||
$instanceName = $this->defaults->getName();
|
||||
$senderName = $this->l->t(
|
||||
|
|
|
|||
Loading…
Reference in a new issue