]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(files_trashbin): Original name of the deleted files should be set as display...
authorFerdinand Thiessen <opensource@fthiessen.de>
Fri, 2 Aug 2024 17:46:30 +0000 (19:46 +0200)
committerFerdinand Thiessen <opensource@fthiessen.de>
Mon, 5 Aug 2024 12:02:57 +0000 (14:02 +0200)
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
apps/files_trashbin/lib/Sabre/TrashbinPlugin.php

index ffa6aa6ae6dd1df00f2a3dc5a7996c5c3ee9fe1e..3299c2d6126e2cfb20dacb80354982c242d519a8 100644 (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();
                });