Skip to content

Commit 199ee80

Browse files
authored
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
2 parents b6e3009 + 6e76aed commit 199ee80

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/files_versions/lib/Sabre/VersionFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function setMetadataValue(string $key, string $value): bool {
7575
$backend = $this->version->getBackend();
7676

7777
if ($backend instanceof IMetadataVersionBackend) {
78-
$backend->setMetadataValue($this->version->getSourceFile(), $this->version->getRevisionId(), $key, $value);
78+
$backend->setMetadataValue($this->version->getSourceFile(), $this->version->getTimestamp(), $key, $value);
7979
return true;
8080
} elseif ($key === 'label' && $backend instanceof INameableVersionBackend) {
8181
$backend->setVersionLabel($this->version, $value);

0 commit comments

Comments
 (0)