mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user