mirror of
https://github.com/discourse/discourse.git
synced 2025-03-20 13:27:52 +08:00
FIX: follow redirects when pulling hotlinked images
This commit is contained in:
parent
d598419742
commit
b6cd4af2ba
@ -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…
x
Reference in New Issue
Block a user