Merge pull request #59304 from nextcloud/backport/59303/stable32

[stable32] fix(sharing): Don't redirect when accepting a share failed
This commit is contained in:
Joas Schilling 2026-03-30 13:47:37 +02:00 committed by GitHub
commit d3a70d5d06
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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