aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorStephan Orbaugh <62374139+sorbaugh@users.noreply.github.com>2024-08-06 15:00:41 +0200
committerGitHub <noreply@github.com>2024-08-06 15:00:41 +0200
commit199ee807952543a2503aeb522fda5a0f02d3e52b (patch)
tree7b090b361ff57a09d981a58e677a12427cfc7044 /apps
parentb6e3009e12485536ca72225f7d6e6a92914c15bf (diff)
parent6e76aed867268f0b20ba64909bfb01977a1cd5ad (diff)
downloadnextcloud-server-199ee807952543a2503aeb522fda5a0f02d3e52b.tar.gz
nextcloud-server-199ee807952543a2503aeb522fda5a0f02d3e52b.zip
Merge pull request #46710 from nextcloud/artonge/fix/use_timestamp_instead_of_revision
fix: Use timestamp instead of revision id in files_versions metadata API
Diffstat (limited to 'apps')
-rw-r--r--apps/files_versions/lib/Sabre/VersionFile.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_versions/lib/Sabre/VersionFile.php b/apps/files_versions/lib/Sabre/VersionFile.php
index 55180a740a9..94fc101f05e 100644
--- a/apps/files_versions/lib/Sabre/VersionFile.php
+++ b/apps/files_versions/lib/Sabre/VersionFile.php
@@ -75,7 +75,7 @@ class VersionFile implements IFile {
$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);