A platform for community discussion. Free, open, simple.
PERF: Skip validations when hotlinked images are replaced in posts
Gerhard Schlager44ff62aa1234
diff --git a/app/jobs/regular/update_hotlinked_raw.rb b/app/jobs/regular/update_hotlinked_raw.rbindex e2e99cc7f85..3763ab96a61 100644--- a/app/jobs/regular/update_hotlinked_raw.rb+++ b/app/jobs/regular/update_hotlinked_raw.rb@@ -23,7 +23,13 @@ module Jobsif post.raw != rawchanges = { raw: raw, edit_reason: I18n.t("upload.edit_reason") }- post.revise(Discourse.system_user, changes, bypass_bump: true, skip_staff_log: true)+ post.revise(+ Discourse.system_user,+ changes,+ bypass_bump: true,+ skip_staff_log: true,+ skip_validations: true,+ )endendend