fix(files_trashbin): Original name of the deleted files should be set as display name for DAV

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
Ferdinand Thiessen 2024-08-02 19:46:30 +02:00
parent 8511b89579
commit b5cd64e584
No known key found for this signature in database
GPG key ID: 45FAE7268762B400

View file

@ -74,6 +74,11 @@ class TrashbinPlugin extends ServerPlugin {
return $node->getDeletedBy()?->getDisplayName();
});
// Pass the real filename as the DAV display name
$propFind->handle(FilesPlugin::DISPLAYNAME_PROPERTYNAME, function () use ($node) {
return $node->getFilename();
});
$propFind->handle(FilesPlugin::SIZE_PROPERTYNAME, function () use ($node) {
return $node->getSize();
});