mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 04:53:37 +08:00
aac9f43038
In an earlier PR, we decided that we only want to block a domain if the blocked domain in the SiteSetting is the final destination (/t/59305). That PR used `FinalDestination#get`. `resolve` however is used several places but blocks domains along the redirect chain when certain options are provided. This commit changes the default options for `resolve` to not do that. Existing users of `FinalDestination#resolve` are - `Oneboxer#external_onebox` - our onebox helper `fetch_html_doc`, which is used in amazon, standard embed and youtube - these folks already go through `Oneboxer#external_onebox` which already blocks correctly |
||
---|---|---|
.. | ||
engine | ||
mixins | ||
templates | ||
discourse_onebox_sanitize_config.rb | ||
domain_checker.rb | ||
engine.rb | ||
file_type_finder.rb | ||
helpers.rb | ||
layout_support.rb | ||
layout.rb | ||
matcher.rb | ||
oembed.rb | ||
open_graph.rb | ||
preview.rb | ||
sanitize_config.rb | ||
status_check.rb | ||
template_support.rb | ||
view.rb |