don't preload metadata for the sub-childen

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2023-08-14 12:58:46 +02:00
parent dfbc0d8572
commit fce1a164a0

View file

@ -465,7 +465,7 @@ class FilesPlugin extends ServerPlugin {
$requestProperties = $propFind->getRequestedProperties();
if ($this->config->getSystemValueBool('enable_file_metadata', true)) {
if ($this->config->getSystemValueBool('enable_file_metadata', true) && $propFind->getDepth() === 1) {
$requestedMetaData = [];
foreach ($requestProperties as $requestProperty) {
if (isset(self::ALL_METADATA_PROPS[$requestProperty])) {