mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 18:11:11 +08:00
FEATURE: Make uploads:missing task compatible with s3 uploads
This commit is contained in:
@ -136,9 +136,10 @@ class S3Helper
|
||||
update_lifecycle("purge_tombstone", grace_period, prefix: @tombstone_prefix)
|
||||
end
|
||||
|
||||
def list(prefix = "")
|
||||
prefix = get_path_for_s3_upload(prefix)
|
||||
s3_bucket.objects(prefix: prefix)
|
||||
def list(prefix = "", marker = nil)
|
||||
options = { prefix: get_path_for_s3_upload(prefix) }
|
||||
options[:marker] = marker if marker.present?
|
||||
s3_bucket.objects(options)
|
||||
end
|
||||
|
||||
def tag_file(key, tags)
|
||||
|
Reference in New Issue
Block a user