diff options
author | Robin Appelman <robin@icewind.nl> | 2021-01-25 17:38:34 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2021-01-26 15:30:54 +0100 |
commit | 5ae0be08b47d423ad5e48d84368543852f6d42e0 (patch) | |
tree | 3d6bda30b51444c383c184788c5c6194b375649d /lib/private/Share20/Share.php | |
parent | 27f9df2e87e39a79e07b4edcbe63315403a7bed1 (diff) | |
download | nextcloud-server-5ae0be08b47d423ad5e48d84368543852f6d42e0.tar.gz nextcloud-server-5ae0be08b47d423ad5e48d84368543852f6d42e0.zip |
fix search in nested jails
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Share20/Share.php')
-rw-r--r-- | lib/private/Share20/Share.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Share20/Share.php b/lib/private/Share20/Share.php index 69f36edf4f3..9b782d5a446 100644 --- a/lib/private/Share20/Share.php +++ b/lib/private/Share20/Share.php @@ -32,6 +32,7 @@ namespace OC\Share20; use OCP\Files\Cache\ICacheEntry; use OCP\Files\File; +use OCP\Files\FileInfo; use OCP\Files\IRootFolder; use OCP\Files\Node; use OCP\Files\NotFoundException; @@ -233,8 +234,8 @@ class Share implements \OCP\Share\IShare { */ public function getNodeType() { if ($this->nodeType === null) { - $node = $this->getNode(); - $this->nodeType = $node instanceof File ? 'file' : 'folder'; + $info = $this->getNodeCacheEntry(); + $this->nodeType = $info->getMimeType() === FileInfo::MIMETYPE_FOLDER ? 'folder' : 'file'; } return $this->nodeType; |