fix(files_versions): `has-preview` must be either `true` or `false`

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
pull/54309/head
Ferdinand Thiessen 2025-08-07 01:24:07 +07:00
parent 6b0bce8a2d
commit 378ddda301
No known key found for this signature in database
GPG Key ID: 45FAE7268762B400
1 changed files with 4 additions and 1 deletions

@ -82,7 +82,10 @@ class Plugin extends ServerPlugin {
if ($node instanceof VersionFile) {
$propFind->handle(self::VERSION_LABEL, fn () => $node->getMetadataValue(self::LABEL));
$propFind->handle(self::VERSION_AUTHOR, fn () => $node->getMetadataValue(self::AUTHOR));
$propFind->handle(FilesPlugin::HAS_PREVIEW_PROPERTYNAME, fn () => $this->previewManager->isMimeSupported($node->getContentType()));
$propFind->handle(
FilesPlugin::HAS_PREVIEW_PROPERTYNAME,
fn (): string => $this->previewManager->isMimeSupported($node->getContentType()) ? 'true' : 'false',
);
}
}