From fb6b84b5c985d1f6741072d76602bfaff93f3f0d Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Mon, 6 Jan 2020 16:48:21 +0100 Subject: 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 --- lib/private/Share20/Manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/Share20') 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() -- cgit v1.2.3