From 60dfe31d5d4802f06b1b4fe243f0a821c01a99a9 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 3 Jan 2024 14:41:58 +0100 Subject: [PATCH] use deletion time instead of mtime in trashbin handling Signed-off-by: Robin Appelman --- apps/files_trashbin/lib/Sabre/TrashFile.php | 4 ++-- apps/files_trashbin/lib/Sabre/TrashFolder.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/files_trashbin/lib/Sabre/TrashFile.php b/apps/files_trashbin/lib/Sabre/TrashFile.php index d9dc102ac83..a3351479487 100644 --- a/apps/files_trashbin/lib/Sabre/TrashFile.php +++ b/apps/files_trashbin/lib/Sabre/TrashFile.php @@ -30,10 +30,10 @@ use OCA\Files_Trashbin\Trashbin; class TrashFile extends AbstractTrashFile { public function get() { - return $this->data->getStorage()->fopen(Trashbin::getTrashFilename($this->data->getInternalPath(), $this->getLastModified()), 'rb'); + return $this->data->getStorage()->fopen(Trashbin::getTrashFilename($this->data->getInternalPath(), $this->getDeletionTime()), 'rb'); } public function getName(): string { - return Trashbin::getTrashFilename($this->data->getName(), $this->getLastModified()); + return Trashbin::getTrashFilename($this->data->getName(), $this->getDeletionTime()); } } diff --git a/apps/files_trashbin/lib/Sabre/TrashFolder.php b/apps/files_trashbin/lib/Sabre/TrashFolder.php index 4623913b18a..fed39d67aa0 100644 --- a/apps/files_trashbin/lib/Sabre/TrashFolder.php +++ b/apps/files_trashbin/lib/Sabre/TrashFolder.php @@ -30,6 +30,6 @@ use OCA\Files_Trashbin\Trashbin; class TrashFolder extends AbstractTrashFolder { public function getName(): string { - return Trashbin::getTrashFilename($this->data->getName(), $this->getLastModified()); + return Trashbin::getTrashFilename($this->data->getName(), $this->getDeletionTime()); } } -- 2.39.5