We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
has-preview
true
false
1 parent 6fa0692 commit c0e1d49Copy full SHA for c0e1d49
apps/files_versions/lib/Sabre/Plugin.php
@@ -78,7 +78,10 @@ public function propFind(PropFind $propFind, INode $node): void {
78
if ($node instanceof VersionFile) {
79
$propFind->handle(self::VERSION_LABEL, fn () => $node->getMetadataValue('label'));
80
$propFind->handle(self::VERSION_AUTHOR, fn () => $node->getMetadataValue('author'));
81
- $propFind->handle(FilesPlugin::HAS_PREVIEW_PROPERTYNAME, fn () => $this->previewManager->isMimeSupported($node->getContentType()));
+ $propFind->handle(
82
+ FilesPlugin::HAS_PREVIEW_PROPERTYNAME,
83
+ fn (): string => $this->previewManager->isMimeSupported($node->getContentType()) ? 'true' : 'false',
84
+ );
85
}
86
87
0 commit comments