From fce1a164a07a33fe2ec71d845a733191bccf59a5 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 14 Aug 2023 12:58:46 +0200 Subject: don't preload metadata for the sub-childen Signed-off-by: Robin Appelman --- apps/dav/lib/Connector/Sabre/FilesPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dav/lib/Connector/Sabre/FilesPlugin.php b/apps/dav/lib/Connector/Sabre/FilesPlugin.php index ae3caa29b91..7d7b27df890 100644 --- a/apps/dav/lib/Connector/Sabre/FilesPlugin.php +++ b/apps/dav/lib/Connector/Sabre/FilesPlugin.php @@ -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])) { -- cgit v1.2.3