diff --git a/lib/cooked_post_processor.rb b/lib/cooked_post_processor.rb index d6fb05a3084..258b791ddea 100644 --- a/lib/cooked_post_processor.rb +++ b/lib/cooked_post_processor.rb @@ -216,7 +216,11 @@ class CookedPostProcessor # minus images inside quotes @doc.css(".quote img") - # minus onebox site icons - @doc.css("img.site-icon") + @doc.css("img.site-icon") - + # minus onebox avatars + @doc.css("img.onebox-avatar") - + # minus small onebox images (large images are .aspect-image-full-size) + @doc.css(".onebox .aspect-image img") end def oneboxed_images