fix: don't construct storage when checking if a sub-mount is applicable

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/52047/head
Robin Appelman 1 year ago
parent 403c33a640
commit c1dbc27fd6
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB
  1. 3
      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);
}));
}

Loading…
Cancel
Save