mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06:00
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:
parent
c9a007d5fb
commit
e0703dbbc7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user