Skip to content

Commit

Permalink
fix(files_trashbin): Original name of the deleted files should be set…
Browse files Browse the repository at this point in the history
… as display name for DAV

Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed Aug 8, 2024
1 parent 598d501 commit 34a93ff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/files_trashbin/lib/Sabre/TrashbinPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down

0 comments on commit 34a93ff

Please sign in to comment.