Never delete original file on store new version (#6489)

* Never delete original file on store new version

* Never delete original file before store new version
This commit is contained in:
Yuriy Bakhtin 2023-08-11 14:57:11 +04:00 committed by GitHub
parent 497ef32f59
commit d9e88fa3c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,10 @@
HumHub Changelog
================
1.14.4 (Unreleased)
----------------------
- Fix #6489: Never delete original file on store new version
1.14.3 (July 27, 2023)
----------------------
- Fix #6345: Fix updating of post on wall stream

View File

@ -350,7 +350,7 @@ class File extends FileCompat
FileHistory::createEntryForFile($this);
}
$this->store->delete(null, [FileHistory::VARIANT_PREFIX . '*']);
$this->store->delete(null, ['file', FileHistory::VARIANT_PREFIX . '*']);
}
/**