diff options
author | Robin Appelman <robin@icewind.nl> | 2022-04-05 15:30:10 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-04-06 15:46:50 +0200 |
commit | ae7205f550d12d713b0b079eb0889c8f3bafb42b (patch) | |
tree | d9ce6b0f1a244f2dac4a39df32c867b87bd5960f /apps/dav/lib | |
parent | 151c80039751bbe74042d7f6f5d58e9f115064e4 (diff) | |
download | nextcloud-server-ae7205f550d12d713b0b079eb0889c8f3bafb42b.tar.gz nextcloud-server-ae7205f550d12d713b0b079eb0889c8f3bafb42b.zip |
use existing node in SharesPlugin
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/dav/lib')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/SharesPlugin.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/Connector/Sabre/SharesPlugin.php b/apps/dav/lib/Connector/Sabre/SharesPlugin.php index d482aa4b510..bbfbfc04a72 100644 --- a/apps/dav/lib/Connector/Sabre/SharesPlugin.php +++ b/apps/dav/lib/Connector/Sabre/SharesPlugin.php @@ -165,7 +165,7 @@ class SharesPlugin extends \Sabre\DAV\ServerPlugin { // if we already cached the folder this file is in we know there are no shares for this file if (array_search($parentPath, $this->cachedFolders) === false) { try { - $node = $this->userFolder->get($sabreNode->getPath()); + $node = $sabreNode->getNode(); } catch (NotFoundException $e) { return []; } @@ -202,7 +202,7 @@ class SharesPlugin extends \Sabre\DAV\ServerPlugin { ) ) { try { - $folderNode = $this->userFolder->get($sabreNode->getPath()); + $folderNode = $sabreNode->getNode(); } catch (NotFoundException $e) { // If the folder can't be properly found just return return; |