diff --git a/lib/cooked_post_processor.rb b/lib/cooked_post_processor.rb index 997b7e895d7..9e68ecdf8e9 100644 --- a/lib/cooked_post_processor.rb +++ b/lib/cooked_post_processor.rb @@ -383,6 +383,8 @@ class CookedPostProcessor end oneboxed_images.each do |img| + next if img["src"].blank? + src = img["src"].sub(/^https?:/i, "") if large_images.include?(src) || broken_images.include?(src)