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

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2025-04-08 18:21:41 +02:00
parent 403c33a640
commit c1dbc27fd6
No known key found for this signature in database
GPG key ID: 42B69D8A64526EFB

View file

@ -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);
}));
}