From 90f91bf01704162dd1e3e4e7f2eef807bd40a68f Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Wed, 28 Mar 2018 16:34:28 +0800 Subject: [PATCH] Fix regression due to https://github.com/discourse/discourse/commit/ee69d58a59c824a7a0b1146710930c5861d3ca26. --- app/jobs/regular/pull_hotlinked_images.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/jobs/regular/pull_hotlinked_images.rb b/app/jobs/regular/pull_hotlinked_images.rb index 0bbef3a4706..4d00204e59a 100644 --- a/app/jobs/regular/pull_hotlinked_images.rb +++ b/app/jobs/regular/pull_hotlinked_images.rb @@ -78,11 +78,11 @@ module Jobs log(:info, "Failed to pull hotlinked image for post: #{post_id}: #{src} - #{upload.errors.full_messages.join("\n")}") end else - large_images << remove_scheme(src) + large_images << remove_scheme(original_src) has_new_large_image = true end else - broken_images << remove_scheme(src) + broken_images << remove_scheme(original_src) has_new_broken_image = true end end