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:
David Taylor 2020-05-14 17:33:16 +01:00
parent c979f1877b
commit 0c6f30d92a
No known key found for this signature in database
GPG Key ID: 46904C18B1D3F434

View File

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