mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 15:52:11 +08:00
FIX: Filtering rows of S3 inventory files was too strict (#19153)
In some setups the keys start with "original/" and "optimized/" and in some setups the key is something like "foo/original/", so lets make the filter less strict.
This commit is contained in:
parent
3c1db9bcb6
commit
62be87d5f3
|
@ -50,7 +50,7 @@ class S3Inventory
|
|||
key = row[CSV_KEY_INDEX]
|
||||
|
||||
next if Rails.configuration.multisite && key.exclude?(multisite_prefix)
|
||||
next if key.exclude?("/#{type}/")
|
||||
next if key.exclude?("#{type}/")
|
||||
|
||||
url = File.join(Discourse.store.absolute_base_url, key)
|
||||
connection.put_copy_data("#{url},#{row[CSV_ETAG_INDEX]}\n")
|
||||
|
|
Loading…
Reference in New Issue
Block a user