mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
PERF: Skip validations when hotlinked images are replaced in posts
They are not necessary and slow down rebakes.
This commit is contained in:
parent
241bf48497
commit
44ff62aa12
@ -23,7 +23,13 @@ module Jobs
|
||||
|
||||
if post.raw != raw
|
||||
changes = { 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,
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user