mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
better support for mixed content
This commit is contained in:
@@ -13,7 +13,7 @@ class OptimizedImage < ActiveRecord::Base
|
||||
# do we already have that thumbnail?
|
||||
thumbnail = find_by(upload_id: upload.id, width: width, height: height)
|
||||
|
||||
# make sure the previous thumbnail has not failed
|
||||
# make sure we have an url
|
||||
if thumbnail && thumbnail.url.blank?
|
||||
thumbnail.destroy
|
||||
thumbnail = nil
|
||||
|
||||
Reference in New Issue
Block a user