FIX: broken gravatar link when using S3

Don't break the optimized image workflow when there was an issue downloading a copy of the original image
This commit is contained in:
Régis Hanol 2015-02-09 17:00:58 +01:00
parent c9a007d5fb
commit e0703dbbc7

View file

@ -67,7 +67,9 @@ class OptimizedImage < ActiveRecord::Base
end
# make sure we remove the cached copy from external stores
external_copy.close! if Discourse.store.external?
if Discourse.store.external?
external_copy.try(:close!) rescue nil
end
thumbnail
end