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:
parent
456cff17f8
commit
361062d53e
3 changed files with 24 additions and 1 deletions
|
@ -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|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue