From b28d97b64a2dbe8c923acf1d3df5d277d1d136c5 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Wed, 24 Jun 2020 11:00:00 +0800 Subject: [PATCH] FIX: Bump onebox for twitch video and clips embedding fix. --- Gemfile.lock | 2 +- lib/oneboxer.rb | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index adf2d052254..4862c4a3bec 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 eb5067cae95..107e6d0610b 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