From c1dbc27fd6484d6ddca3da01a0ca0055e86325fa Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 8 Apr 2025 18:21:41 +0200 Subject: fix: don't construct storage when checking if a sub-mount is applicable Signed-off-by: Robin Appelman --- lib/private/Files/View.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/private/Files') diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php index bbad24d3e43..f17ced1611b 100644 --- a/lib/private/Files/View.php +++ b/lib/private/Files/View.php @@ -1466,8 +1466,7 @@ class View { public function addSubMounts(FileInfo $info, $extOnly = false): void { $mounts = Filesystem::getMountManager()->findIn($info->getPath()); $info->setSubMounts(array_filter($mounts, function (IMountPoint $mount) use ($extOnly) { - $subStorage = $mount->getStorage(); - return !($extOnly && $subStorage instanceof \OCA\Files_Sharing\SharedStorage); + return !($extOnly && $mount instanceof SharedMount); })); } -- cgit v1.2.3