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

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2026-03-30 12:07:42 +02:00 committed by backportbot[bot]
parent 356d956f99
commit 937fa52370

View file

@ -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()]);