mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-24 05:42:03 -04: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?
|
# have we already downloaded that file?
|
||||||
unless downloaded_urls.include?(src)
|
unless downloaded_urls.include?(src)
|
||||||
begin
|
begin
|
||||||
hotlinked = FileHelper.download(src, @max_size, "discourse-hotlinked")
|
hotlinked = FileHelper.download(src, @max_size, "discourse-hotlinked", true)
|
||||||
rescue Discourse::InvalidParameters
|
rescue Discourse::InvalidParameters
|
||||||
end
|
end
|
||||||
if hotlinked
|
if hotlinked
|
||||||
|
|
Loading…
Add table
Reference in a new issue