discourse/lib/onebox/engine
Jarek Radosz 31b27b3712
FIX: Broken GitHub folder onebox logic (#15612)
1. `html_doc.css('.Box.md')` always returns a truthy value (e.g. `[]`) so the second branch of the if-elsif never ran
2. `node&.css('text()')` was invalid code that would raise an error
3. Matching on h3 elements is no longer correct with the current html structure returned by GitHub
2022-01-17 18:32:07 +01:00
..
allowlisted_generic_onebox.rb FIX: Disable previews if diffhtml is enabled (#14537) 2021-10-08 15:57:08 +03:00
amazon_onebox.rb
animated_image_onebox.rb
asciinema_onebox.rb
audio_onebox.rb FIX: Disable previews if diffhtml is enabled (#14537) 2021-10-08 15:57:08 +03:00
audioboom_onebox.rb
band_camp_onebox.rb
cloud_app_onebox.rb
coub_onebox.rb
facebook_media_onebox.rb
five_hundred_px_onebox.rb
flickr_onebox.rb
flickr_shortened_onebox.rb
gfycat_onebox.rb
github_actions_onebox.rb DEV: Fix rubocop issues (#14715) 2021-10-27 11:39:28 +03:00
github_blob_onebox.rb
github_commit_onebox.rb
github_folder_onebox.rb FIX: Broken GitHub folder onebox logic (#15612) 2022-01-17 18:32:07 +01:00
github_gist_onebox.rb
github_issue_onebox.rb
github_pull_request_onebox.rb
gitlab_blob_onebox.rb
google_calendar_onebox.rb
google_docs_onebox.rb
google_drive_onebox.rb
google_maps_onebox.rb
google_photos_onebox.rb FIX: Correct the play icon position (#14295) 2021-09-09 15:10:32 +02:00
google_play_app_onebox.rb
html.rb
image_onebox.rb FEATURE: Onebox can match engines based on the content_type (#13876) 2021-07-30 13:36:30 -04:00
imgur_onebox.rb
instagram_onebox.rb FIX: Display Instagram Oneboxes in an iframe (#14789) 2021-11-02 14:34:51 -04:00
json.rb DEV: Fix rubocop issues (#14715) 2021-10-27 11:39:28 +03:00
kaltura_onebox.rb
mixcloud_onebox.rb
opengraph_image.rb
pastebin_onebox.rb
pdf_onebox.rb
pubmed_onebox.rb DEV: Fix rubocop issues (#14715) 2021-10-27 11:39:28 +03:00
reddit_media_onebox.rb FIX: Correct the play icon position (#14295) 2021-09-09 15:10:32 +02:00
replit_onebox.rb Update replit onebox to accept .com 2021-10-19 16:37:33 -04:00
simplecast_onebox.rb FIX: update iframe url for simplecast onebox (#13957) 2021-08-05 18:29:04 +05:30
sketch_fab_onebox.rb
slides_onebox.rb
sound_cloud_onebox.rb
stack_exchange_onebox.rb
standard_embed.rb FIX: Use basic meta description if other description tags are missing (#15356) 2021-12-17 19:36:54 -05:00
steam_store_onebox.rb
trello_onebox.rb
twitch_clips_onebox.rb
twitch_stream_onebox.rb
twitch_video_onebox.rb
twitter_status_onebox.rb
typeform_onebox.rb
video_onebox.rb FIX: Disable previews if diffhtml is enabled (#14537) 2021-10-08 15:57:08 +03:00
vimeo_onebox.rb FIX: Vimeo private video oneboxes were broken (#14510) 2021-10-05 15:46:58 +05:30
wikimedia_onebox.rb
wikipedia_onebox.rb FIX: Unescapes hash section with present to account for url-encoded chars 2021-08-12 10:43:50 -04:00
wistia_onebox.rb
xkcd_onebox.rb
youku_onebox.rb
youtube_onebox.rb SECURITY: Sanitize YouTube Onebox data (#13748) 2021-07-15 19:31:50 +01:00