mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Update uploads:list_posts_with_broken_images to recover from tombstone.
This commit is contained in:
@@ -43,10 +43,10 @@ class S3Helper
|
||||
rescue Aws::S3::Errors::NoSuchKey
|
||||
end
|
||||
|
||||
def copy(source, destination)
|
||||
def copy(source, destination, options: {})
|
||||
s3_bucket
|
||||
.object(destination)
|
||||
.copy_from(copy_source: File.join(@s3_bucket_name, source))
|
||||
.copy_from(options.merge(copy_source: File.join(@s3_bucket_name, source)))
|
||||
end
|
||||
|
||||
# make sure we have a cors config for assets
|
||||
|
||||
Reference in New Issue
Block a user