mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Should skip the loop if the image src is blank
This commit is contained in:
parent
64cdb4f7e8
commit
1f3e9a4350
@ -383,6 +383,8 @@ class CookedPostProcessor
|
|||||||
end
|
end
|
||||||
|
|
||||||
oneboxed_images.each do |img|
|
oneboxed_images.each do |img|
|
||||||
|
next if img["src"].blank?
|
||||||
|
|
||||||
src = img["src"].sub(/^https?:/i, "")
|
src = img["src"].sub(/^https?:/i, "")
|
||||||
|
|
||||||
if large_images.include?(src) || broken_images.include?(src)
|
if large_images.include?(src) || broken_images.include?(src)
|
||||||
|
Loading…
Reference in New Issue
Block a user