do not create new revision when remapping posts

This commit is contained in:
Arpit Jalan 2016-09-03 23:21:56 +05:30
parent 574a4d7758
commit 76857e3f77

View File

@ -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