mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Allow lazy-yt thumbnails to fetched by pull_hotlinked_images
The thumbnails were being correctly downloaded, but the URLs were not being substituted correctly in post_process_cooked because the lazy-yt output did not include the `onebox` class.
This commit is contained in:
parent
c979f1877b
commit
0c6f30d92a
@ -29,7 +29,7 @@ class Onebox::Engine::YoutubeOnebox
|
||||
escaped_title = ERB::Util.html_escape(video_title)
|
||||
|
||||
<<~EOF
|
||||
<div class="lazyYT"
|
||||
<div class="onebox lazyYT"
|
||||
data-youtube-id="#{video_id}"
|
||||
data-youtube-title="#{escaped_title}"
|
||||
data-width="#{video_width}"
|
||||
|
Loading…
Reference in New Issue
Block a user