Skip to content

Commit

Permalink
Merge pull request #46710 from nextcloud/artonge/fix/use_timestamp_in…
Browse files Browse the repository at this point in the history
…stead_of_revision

fix: Use timestamp instead of revision id in files_versions metadata API
  • Loading branch information
sorbaugh authored Aug 6, 2024
2 parents b6e3009 + 6e76aed commit 199ee80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files_versions/lib/Sabre/VersionFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 199ee80

Please sign in to comment.