summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-01-06 16:48:21 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2020-01-06 16:48:21 +0100
commitfb6b84b5c985d1f6741072d76602bfaff93f3f0d (patch)
tree1ce613f00e8c6ab55e5ec6d26f9436ce8138af2a /lib
parente5d3efb99e2d77b30339496285e15d5d00fc9e60 (diff)
downloadnextcloud-server-fb6b84b5c985d1f6741072d76602bfaff93f3f0d.tar.gz
nextcloud-server-fb6b84b5c985d1f6741072d76602bfaff93f3f0d.zip
Accept shares when you open mail
Fixes #18380 When you open a direct share to yourself. We should autoaccept the share. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Share20/Manager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php
index 4c94cf26a4d..8ec025ebc26 100644
--- a/lib/private/Share20/Manager.php
+++ b/lib/private/Share20/Manager.php
@@ -800,7 +800,7 @@ class Manager implements IManager {
$this->sendMailNotification(
$l,
$share->getNode()->getName(),
- $this->urlGenerator->linkToRouteAbsolute('files.viewcontroller.showFile', ['fileid' => $share->getNode()->getId()]),
+ $this->urlGenerator->linkToRouteAbsolute('files_sharing.Accept.accept', ['shareId' => $share->getFullId()]),
$share->getSharedBy(),
$emailAddress,
$share->getExpirationDate()