aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2025-04-08 18:21:41 +0200
committerRobin Appelman <robin@icewind.nl>2025-04-08 18:21:41 +0200
commitc1dbc27fd6484d6ddca3da01a0ca0055e86325fa (patch)
tree28668e87372ddf918ddbfa2c5a2db7e743294d4c
parent403c33a640a5ffe57ce68d4c097fe74d94431145 (diff)
downloadnextcloud-server-c1dbc27fd6484d6ddca3da01a0ca0055e86325fa.tar.gz
nextcloud-server-c1dbc27fd6484d6ddca3da01a0ca0055e86325fa.zip
fix: don't construct storage when checking if a sub-mount is applicablesub-mount-filter-no-storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r--lib/private/Files/View.php3
1 files changed, 1 insertions, 2 deletions
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);
}));
}