mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 09:12:45 +08:00
Fix s3 recovery from tombstone in UploadRecovery
.
This commit is contained in:
parent
9461c99210
commit
4dc25ad201
|
@ -89,9 +89,12 @@ class UploadRecovery
|
|||
tombstone_prefix = FileStore::S3Store::TOMBSTONE_PREFIX
|
||||
|
||||
if key.starts_with?(tombstone_prefix)
|
||||
old_key = key
|
||||
key = key.sub(tombstone_prefix, "")
|
||||
|
||||
Discourse.store.s3_helper.copy(
|
||||
old_key,
|
||||
key,
|
||||
key.sub(tombstone_prefix, ""),
|
||||
options: { acl: "public-read" }
|
||||
)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user