Merge pull request #52047 from nextcloud/sub-mount-filter-no-storage

pull/52543/head
Kate 2025-05-06 15:25:23 +07:00 committed by GitHub
commit 87bad33496
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

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