Skip to content

A platform for community discussion. Free, open, simple.

FEATURE: Allow onebox images to be used as topic thumbnails (#12050)

David Taylorb770c30391d0
diff --git a/lib/cooked_post_processor.rb b/lib/cooked_post_processor.rb
index 74789f4891d..a3046fbb3db 100644
--- a/lib/cooked_post_processor.rb
+++ b/lib/cooked_post_processor.rb
@@ -209,8 +209,8 @@ class CookedPostProcessor
@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")
+ # minus github onebox profile images
+ @doc.css(".onebox.githubfolder img")
end
def oneboxed_images