should be using site setting not global
This commit is contained in:
parent
918034aa7b
commit
0a2a248acc
|
@ -111,7 +111,7 @@ module Jobs
|
|||
end
|
||||
# we don't want to pull images hosted on the CDN (if we use one)
|
||||
return false if Discourse.asset_host.present? && URI.parse(Discourse.asset_host).hostname == uri.hostname
|
||||
return false if Discourse.s3_cdn_url.present? && URI.parse(Discourse.s3_cdn_url).hostname == uri.hostname
|
||||
return false if SiteSetting.s3_cdn_url.present? && URI.parse(SiteSetting.s3_cdn_url).hostname == uri.hostname
|
||||
# we don't want to pull images hosted on the main domain
|
||||
return false if URI.parse(Discourse.base_url_no_prefix).hostname == uri.hostname
|
||||
# check the domains blacklist
|
||||
|
|
Loading…
Reference in New Issue