mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
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:
parent
8511b89579
commit
b5cd64e584
1 changed files with 5 additions and 0 deletions
|
|
@ -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();
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue