FIX: Bump onebox for twitch video and clips embedding fix.

FIX: Bump onebox for twitch video and clips embedding fix.

diff --git a/Gemfile.lock b/Gemfile.lock
index adf2d05..4862c4a 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -240,7 +240,7 @@ GEM
     omniauth-twitter (1.4.0)
       omniauth-oauth (~> 1.1)
       rack
-    onebox (1.9.28.4)
+    onebox (1.9.29)
       addressable (~> 2.7.0)
       htmlentities (~> 4.3)
       multi_json (~> 1.11)
diff --git a/lib/oneboxer.rb b/lib/oneboxer.rb
index eb5067c..107e6d0 100644
--- a/lib/oneboxer.rb
+++ b/lib/oneboxer.rb
@@ -313,7 +313,8 @@ module Oneboxer
 
       options = {
         max_width: 695,
-        sanitize_config: Onebox::DiscourseOneboxSanitizeConfig::Config::DISCOURSE_ONEBOX
+        sanitize_config: Onebox::DiscourseOneboxSanitizeConfig::Config::DISCOURSE_ONEBOX,
+        hostname: GlobalSetting.hostname,
       }
 
       options[:cookie] = fd.cookie if fd.cookie

GitHub sha: b28d97b6

1 Like

This commit has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/twitch-auto-embed-broken/155473/7