From 34a93ff1e42ea980b83a80d53ad79f758baae2e9 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Fri, 2 Aug 2024 19:46:30 +0200 Subject: [PATCH] fix(files_trashbin): Original name of the deleted files should be set as display name for DAV Signed-off-by: Ferdinand Thiessen --- apps/files_trashbin/lib/Sabre/TrashbinPlugin.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/files_trashbin/lib/Sabre/TrashbinPlugin.php b/apps/files_trashbin/lib/Sabre/TrashbinPlugin.php index 72b7332d9b11b..60c51708f0b98 100644 --- a/apps/files_trashbin/lib/Sabre/TrashbinPlugin.php +++ b/apps/files_trashbin/lib/Sabre/TrashbinPlugin.php @@ -67,6 +67,11 @@ public function propFind(PropFind $propFind, INode $node) { return; } + // Pass the real filename as the DAV display name + $propFind->handle(FilesPlugin::DISPLAYNAME_PROPERTYNAME, function () use ($node) { + return $node->getFilename(); + }); + $propFind->handle(self::TRASHBIN_FILENAME, function () use ($node) { return $node->getFilename(); });