mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
FIX: follow redirects when pulling hotlinked images
This commit is contained in:
parent
d598419742
commit
b6cd4af2ba
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue