From 6e76aed867268f0b20ba64909bfb01977a1cd5ad Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Wed, 24 Jul 2024 09:34:13 +0200 Subject: [PATCH] fix: Use timestamp instead of revision id in files_versions metadata API Signed-off-by: Louis Chemineau --- apps/files_versions/lib/Sabre/VersionFile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_versions/lib/Sabre/VersionFile.php b/apps/files_versions/lib/Sabre/VersionFile.php index 55180a740a9f3..94fc101f05e35 100644 --- a/apps/files_versions/lib/Sabre/VersionFile.php +++ b/apps/files_versions/lib/Sabre/VersionFile.php @@ -75,7 +75,7 @@ public function setMetadataValue(string $key, string $value): bool { $backend = $this->version->getBackend(); if ($backend instanceof IMetadataVersionBackend) { - $backend->setMetadataValue($this->version->getSourceFile(), $this->version->getRevisionId(), $key, $value); + $backend->setMetadataValue($this->version->getSourceFile(), $this->version->getTimestamp(), $key, $value); return true; } elseif ($key === 'label' && $backend instanceof INameableVersionBackend) { $backend->setVersionLabel($this->version, $value);