fix(sharing): Don't redirect when accepting a share failed

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/59304/head
Joas Schilling 2 months ago committed by backportbot[bot]
parent 728164c112
commit 8dbc006009
  1. 2
      apps/files_sharing/lib/Controller/AcceptController.php

@ -51,7 +51,7 @@ class AcceptController extends Controller {
try {
$share = $this->shareManager->acceptShare($share, $user->getUID());
} catch (\Exception $e) {
// Just ignore
return new NotFoundResponse();
}
$url = $this->urlGenerator->linkToRouteAbsolute('files.viewcontroller.showFile', ['fileid' => $share->getNode()->getId()]);

Loading…
Cancel
Save