Skip to content

A platform for community discussion. Free, open, simple.

Fix regression due to https://github.com/discourse/discourse/commit/ee69d58a59c824a7a0b1146710930c5861d3ca26.

Guo Xiang Tan90f91bf01704
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