Skip to content

Commit

Permalink
Merge pull request #47072 from nextcloud/backport/46710/stable29
Browse files Browse the repository at this point in the history
[stable29] fix: Use timestamp instead of revision id in files_versions metadata API
  • Loading branch information
susnux authored Aug 8, 2024
2 parents bbf8653 + 959f171 commit b251580
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 @@ -93,7 +93,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 b251580

Please sign in to comment.