From b6cd4af2baafb7bef9e9e2d979636a556e9cae89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Fri, 14 Aug 2015 12:46:52 +0200 Subject: [PATCH] FIX: follow redirects when pulling hotlinked images --- app/jobs/regular/pull_hotlinked_images.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/regular/pull_hotlinked_images.rb b/app/jobs/regular/pull_hotlinked_images.rb index bc2ece41f01..7d114653d41 100644 --- a/app/jobs/regular/pull_hotlinked_images.rb +++ b/app/jobs/regular/pull_hotlinked_images.rb @@ -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