FIX: Exporting themes when uploads are on S3

This commit is contained in:
David Taylor 2019-01-31 17:34:34 +00:00
parent 1021a42b22
commit b3a41878ec
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ class ThemeStore::TgzExporter
if ThemeField.types[field.type_id] == :theme_upload_var
filename = Discourse.store.path_for(field.upload)
content = filename ? File.read(filename) : Discourse.store.download(object.upload).read
content = filename ? File.read(filename) : Discourse.store.download(field.upload).read
else
content = field.value
end