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

This commit is contained in:
Guo Xiang Tan 2020-06-24 11:00:00 +08:00
parent e0cd7ddada
commit b28d97b64a
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20
2 changed files with 3 additions and 2 deletions

View File

@ -240,7 +240,7 @@ GEM
omniauth-twitter (1.4.0) omniauth-twitter (1.4.0)
omniauth-oauth (~> 1.1) omniauth-oauth (~> 1.1)
rack rack
onebox (1.9.28.4) onebox (1.9.29)
addressable (~> 2.7.0) addressable (~> 2.7.0)
htmlentities (~> 4.3) htmlentities (~> 4.3)
multi_json (~> 1.11) multi_json (~> 1.11)

View File

@ -313,7 +313,8 @@ module Oneboxer
options = { options = {
max_width: 695, 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 options[:cookie] = fd.cookie if fd.cookie