mirror of
https://github.com/discourse/discourse.git
synced 2025-05-01 12:04:37 +08:00
FIX: no need to pass cache
option in onebox
This commit is contained in:
parent
cb9702bf7a
commit
72bc0f82b9
@ -275,7 +275,6 @@ module Oneboxer
|
|||||||
return blank_onebox if uri.blank? || blacklisted_domains.map { |hostname| uri.hostname.match?(hostname) }.any?
|
return blank_onebox if uri.blank? || blacklisted_domains.map { |hostname| uri.hostname.match?(hostname) }.any?
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
cache: {},
|
|
||||||
max_width: 695,
|
max_width: 695,
|
||||||
sanitize_config: Onebox::DiscourseOneboxSanitizeConfig::Config::DISCOURSE_ONEBOX
|
sanitize_config: Onebox::DiscourseOneboxSanitizeConfig::Config::DISCOURSE_ONEBOX
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user