mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 01:47:46 +08:00
DEV: Don’t patch Sanitize::Config
Currently we’re reopening the `Sanitize::Config` class (which is part of the `sanitize` gem) to put our custom config for Onebox in it. This is unnecessary as we can simply create a dedicated module to hold our custom configuration.
This commit is contained in:

committed by
Loïc Guitaut

parent
1203121ac1
commit
46176b7dd7
@ -425,7 +425,7 @@ module Oneboxer
|
||||
|
||||
onebox_options = {
|
||||
max_width: 695,
|
||||
sanitize_config: Onebox::DiscourseOneboxSanitizeConfig::Config::DISCOURSE_ONEBOX,
|
||||
sanitize_config: Onebox::SanitizeConfig::DISCOURSE_ONEBOX,
|
||||
allowed_iframe_origins: allowed_iframe_origins,
|
||||
hostname: GlobalSetting.hostname,
|
||||
facebook_app_access_token: SiteSetting.facebook_app_access_token,
|
||||
|
Reference in New Issue
Block a user