mirror of
https://github.com/nextcloud/server.git
synced 2026-04-27 01:00:20 -04:00
fix(files_versions): has-preview must be either true or false
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
parent
6b0bce8a2d
commit
378ddda301
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',
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue