mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:30:26 -06:00
do not create new revision when remapping posts
This commit is contained in:
parent
574a4d7758
commit
76857e3f77
@ -127,7 +127,7 @@ task 'posts:remap', [:find, :replace] => [:environment] do |_,args|
|
||||
new_raw = new_raw.gsub!(/#{Regexp.escape(find)}/, replace) || new_raw
|
||||
|
||||
if new_raw != p.raw
|
||||
p.revise(Discourse.system_user, { raw: new_raw }, { bypass_bump: true })
|
||||
p.revise(Discourse.system_user, { raw: new_raw }, { bypass_bump: true, skip_revision: true })
|
||||
putc "."
|
||||
i += 1
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user