mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 12:55:00 +08: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
|
||||
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user