2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-08-20 18:52:44 +08:00

do not lightbox oneboxed images

This commit is contained in:
Régis Hanol 2013-06-24 02:10:21 +02:00
parent 456cff17f8
commit 361062d53e
3 changed files with 24 additions and 1 deletions

View file

@ -22,7 +22,7 @@ class CookedPostProcessor
end
def post_process_images
images = @doc.search("img")
images = @doc.css("img") - @doc.css(".onebox-result img")
return unless images.present?
images.each do |img|