FIX: follow redirects when pulling hotlinked images

This commit is contained in:
Régis Hanol 2015-08-14 12:46:52 +02:00
parent d598419742
commit b6cd4af2ba

View file

@ -32,7 +32,7 @@ module Jobs
# have we already downloaded that file?
unless downloaded_urls.include?(src)
begin
hotlinked = FileHelper.download(src, @max_size, "discourse-hotlinked")
hotlinked = FileHelper.download(src, @max_size, "discourse-hotlinked", true)
rescue Discourse::InvalidParameters
end
if hotlinked