FIX: Allow lazy-yt thumbnails to fetched by pull_hotlinked_images

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.

diff --git a/plugins/lazy-yt/plugin.rb b/plugins/lazy-yt/plugin.rb
index 9d0af49..3665244 100644
--- a/plugins/lazy-yt/plugin.rb
+++ b/plugins/lazy-yt/plugin.rb
@@ -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}"

GitHub sha: 0c6f30d9

1 Like