aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-01-10 14:28:09 +0100
committerGitHub <noreply@github.com>2024-01-10 14:28:09 +0100
commit62506a4e8de97dc9909d83029f47e78afce99371 (patch)
tree39ac8c4c2edb2af7bc31b132037982445f5a2741
parent50aeae6a858094d86d93d0db12889ca98d226ab0 (diff)
parent60dfe31d5d4802f06b1b4fe243f0a821c01a99a9 (diff)
downloadnextcloud-server-62506a4e8de97dc9909d83029f47e78afce99371.tar.gz
nextcloud-server-62506a4e8de97dc9909d83029f47e78afce99371.zip
Merge pull request #42558 from nextcloud/trash-mtime-deletion-time
use deletion time instead of mtime in trashbin handling
-rw-r--r--apps/files_trashbin/lib/Sabre/TrashFile.php4
-rw-r--r--apps/files_trashbin/lib/Sabre/TrashFolder.php2
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());
}
}