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

Still excludes GitHub avatars. Those were the original reason for adding
this broad exclusion. Context at https://meta.discourse.org/t/165713/4

If we find more oneboxes which are unsuitable for thumbnails, we can add
them to this selector.
This commit is contained in:
David Taylor 2021-02-11 17:50:42 +00:00 committed by GitHub
parent 2068780493
commit b770c30391
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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