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 committed by backportbot-nextcloud[bot]
parent eaaa3521e5
commit 9b3d8f334b

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])) {