mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 10:57:04 +08:00
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:
parent
2068780493
commit
b770c30391
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user