From b3a41878ec85180a5c62bfa8e3ff54b05be5628e Mon Sep 17 00:00:00 2001 From: David Taylor Date: Thu, 31 Jan 2019 17:34:34 +0000 Subject: [PATCH] FIX: Exporting themes when uploads are on S3 --- lib/theme_store/tgz_exporter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/theme_store/tgz_exporter.rb b/lib/theme_store/tgz_exporter.rb index deeaadbd534..7487e82692a 100644 --- a/lib/theme_store/tgz_exporter.rb +++ b/lib/theme_store/tgz_exporter.rb @@ -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