Skip to content

Commit c0e1d49

Browse files
committed
fix(files_versions): has-preview must be either true or false
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 6fa0692 commit c0e1d49

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apps/files_versions/lib/Sabre/Plugin.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ public function propFind(PropFind $propFind, INode $node): void {
7878
if ($node instanceof VersionFile) {
7979
$propFind->handle(self::VERSION_LABEL, fn () => $node->getMetadataValue('label'));
8080
$propFind->handle(self::VERSION_AUTHOR, fn () => $node->getMetadataValue('author'));
81-
$propFind->handle(FilesPlugin::HAS_PREVIEW_PROPERTYNAME, fn () => $this->previewManager->isMimeSupported($node->getContentType()));
81+
$propFind->handle(
82+
FilesPlugin::HAS_PREVIEW_PROPERTYNAME,
83+
fn (): string => $this->previewManager->isMimeSupported($node->getContentType()) ? 'true' : 'false',
84+
);
8285
}
8386
}
8487

0 commit comments

Comments
 (0)