should be using site setting not global

This commit is contained in:
Sam 2015-05-27 11:17:46 +10:00
parent 918034aa7b
commit 0a2a248acc
1 changed files with 1 additions and 1 deletions

View File

@ -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