mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: follow redirects when pulling hotlinked images
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user