diff --git a/app/jobs/regular/pull_hotlinked_images.rb b/app/jobs/regular/pull_hotlinked_images.rb index d3e3d07e43e..672b85ac965 100644 --- a/app/jobs/regular/pull_hotlinked_images.rb +++ b/app/jobs/regular/pull_hotlinked_images.rb @@ -97,7 +97,7 @@ module Jobs raw.gsub!(/src=["']#{escaped_src}["']/i, "src='#{url}'") if (original_path = Upload.extract_url(original_src)&.to_s) && - (path = Upload.extract_url(url)&.to_s) + Upload.extract_url(url)&.to_s raw.gsub!( /src=["']\S*#{Regexp.escape(original_path)}["']/i,