mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Merge pull request #42558 from nextcloud/trash-mtime-deletion-time
use deletion time instead of mtime in trashbin handling
This commit is contained in:
commit
62506a4e8d
2 changed files with 3 additions and 3 deletions
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue