From 19895aa5dbf81ef5721f021e42b519884e60ec56 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 72b7332d9b1..60c51708f0b 100644 --- a/apps/files_trashbin/lib/Sabre/TrashbinPlugin.php +++ b/apps/files_trashbin/lib/Sabre/TrashbinPlugin.php @@ -67,6 +67,11 @@ class TrashbinPlugin extends ServerPlugin { 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(); });