diff --git a/app/models/optimized_image.rb b/app/models/optimized_image.rb index 3a0c5aaa82c..a9085246759 100644 --- a/app/models/optimized_image.rb +++ b/app/models/optimized_image.rb @@ -26,7 +26,7 @@ class OptimizedImage < ActiveRecord::Base # create the thumbnail otherwise original_path = Discourse.store.path_for(upload) if original_path.blank? - external_copy = Discourse.store.download(upload) + external_copy = Discourse.store.download(upload) rescue nil original_path = external_copy.try(:path) end