mirror of
https://github.com/discourse/discourse.git
synced 2025-03-31 21:36:18 +08:00
Fix UploadRecovery
from S3 fails with bucket name containing sub-folder.
This commit is contained in:
parent
05fe5c9188
commit
40559b3881
@ -95,7 +95,7 @@ class UploadRecovery
|
||||
if key =~ /#{sha1}/
|
||||
tombstone_prefix = FileStore::S3Store::TOMBSTONE_PREFIX
|
||||
|
||||
if key.starts_with?(tombstone_prefix)
|
||||
if key.include?(tombstone_prefix)
|
||||
old_key = key
|
||||
key = key.sub(tombstone_prefix, "")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user