UX: Do not use small onebox images as post/topic images

This commit is contained in:
David Taylor 2020-05-14 18:01:43 +01:00
parent bec6bace53
commit 956d15d13f
No known key found for this signature in database
GPG Key ID: 46904C18B1D3F434

View File

@ -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