Skip to content

Commit

Permalink
fix: Use timestamp instead of revision id in files_versions metadata API
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <louis@chmn.me>
  • Loading branch information
artonge authored and AndyScherzinger committed Aug 7, 2024
1 parent 1b50d28 commit 959f171
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 959f171

Please sign in to comment.