Skip to content

Commit

Permalink
use existing node in SharesPlugin
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <robin@icewind.nl>
  • Loading branch information
icewind1991 committed Apr 5, 2022
1 parent 2c6ed08 commit 669d7c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/dav/lib/Connector/Sabre/SharesPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ private function getShares(DavNode $sabreNode): array {
// 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 [];
}
Expand Down Expand Up @@ -202,7 +202,7 @@ public function handleGetProperties(
)
) {
try {
$folderNode = $this->userFolder->get($sabreNode->getPath());
$folderNode = $sabreNode->getNode();
} catch (NotFoundException $e) {
// If the folder can't be properly found just return
return;
Expand Down

0 comments on commit 669d7c5

Please sign in to comment.