fix(files_trashbin): `has-preview` must return `true` or `false`

Currently it returned the boolean value, but PHP will turn it into an
integer...

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
pull/54314/head
Ferdinand Thiessen 2025-08-07 01:23:10 +07:00
parent 17e97e6f85
commit 26a7d6d127
No known key found for this signature in database
GPG Key ID: 45FAE7268762B400
1 changed files with 2 additions and 2 deletions

@ -111,8 +111,8 @@ class TrashbinPlugin extends ServerPlugin {
return $node->getFileId();
});
$propFind->handle(FilesPlugin::HAS_PREVIEW_PROPERTYNAME, function () use ($node) {
return $this->previewManager->isAvailable($node->getFileInfo());
$propFind->handle(FilesPlugin::HAS_PREVIEW_PROPERTYNAME, function () use ($node): string {
return $this->previewManager->isAvailable($node->getFileInfo()) ? 'true' : 'false';
});
$propFind->handle(FilesPlugin::MOUNT_TYPE_PROPERTYNAME, function () {