add direct link to the share

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
This commit is contained in:
Bjoern Schiessle 2018-07-12 19:32:03 +02:00 committed by John Molakvoæ (skjnldsv)
parent b56ccef564
commit 1ce519ad38
No known key found for this signature in database
GPG key ID: 60C25B8C072916CF

View file

@ -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(