mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05: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
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue