Skip to content

Commit

Permalink
Only return the value of metadata in DAV requests
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <louis@chmn.me>
  • Loading branch information
artonge committed Nov 6, 2023
1 parent 7f79f32 commit 5da3604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dav/lib/Connector/Sabre/FilesPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ public function handleGetProperties(PropFind $propFind, \Sabre\DAV\INode $node)
});

foreach ($node->getFileInfo()->getMetadata() as $metadataKey => $metadataValue) {
$propFind->handle(self::FILE_METADATA_PREFIX . $metadataKey, $metadataValue);
$propFind->handle(self::FILE_METADATA_PREFIX . $metadataKey, $metadataValue['value']);
}

/**
Expand Down

0 comments on commit 5da3604

Please sign in to comment.