From b5cd64e584ca9c91a11df204f3c040fdd2057a13 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Fri, 2 Aug 2024 19:46:30 +0200 Subject: 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(+) (limited to 'apps/files_trashbin/lib') diff --git a/apps/files_trashbin/lib/Sabre/TrashbinPlugin.php b/apps/files_trashbin/lib/Sabre/TrashbinPlugin.php index ffa6aa6ae6d..3299c2d6126 100644 --- a/apps/files_trashbin/lib/Sabre/TrashbinPlugin.php +++ b/apps/files_trashbin/lib/Sabre/TrashbinPlugin.php @@ -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(); }); -- cgit v1.2.3