aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-01-03 14:41:58 +0100
committerRobin Appelman <robin@icewind.nl>2024-01-03 14:41:58 +0100
commit60dfe31d5d4802f06b1b4fe243f0a821c01a99a9 (patch)
tree449b7d062a52acca721b116d110b67a0441f0ead /apps/files_trashbin
parent29e6f062d533361adff9931f5cf91bb270a8c8bf (diff)
downloadnextcloud-server-60dfe31d5d4802f06b1b4fe243f0a821c01a99a9.tar.gz
nextcloud-server-60dfe31d5d4802f06b1b4fe243f0a821c01a99a9.zip
use deletion time instead of mtime in trashbin handling
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_trashbin')
-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());
}
}