mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 13:24:58 +08:00
FEATURE: do not bump topic when pulling hotlinked images
This commit is contained in:
parent
d1b96d0e8b
commit
c52ee665b4
|
@ -80,8 +80,10 @@ module Jobs
|
|||
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
|
||||
options = { edit_reason: I18n.t("upload.edit_reason") }
|
||||
options[:bypass_bump] = !!args[:bypass_bump]
|
||||
options = {
|
||||
edit_reason: I18n.t("upload.edit_reason"),
|
||||
bypass_bump: true # we never want that job to bump the topic
|
||||
}
|
||||
post.revise(Discourse.system_user, raw, options)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user