diff --git a/app/jobs/regular/pull_hotlinked_images.rb b/app/jobs/regular/pull_hotlinked_images.rb index efe7457e5c3..8c5ece783d2 100644 --- a/app/jobs/regular/pull_hotlinked_images.rb +++ b/app/jobs/regular/pull_hotlinked_images.rb @@ -76,12 +76,7 @@ module Jobs end post.reload - if start_raw != post.raw - # post was edited - start over (after 10 minutes) - backoff = args.fetch(:backoff, 1) + 1 - delay = SiteSetting.ninja_edit_window * args[:backoff] - Jobs.enqueue_in(delay.seconds.to_i, :pull_hotlinked_images, args.merge!(backoff: backoff)) - elsif raw != post.raw + if start_raw == post.raw && raw != post.raw changes = { raw: raw, edit_reason: I18n.t("upload.edit_reason") } # we never want that job to bump the topic options = { bypass_bump: true }