From 76857e3f7724e7a46b903ab72274c124ae3d0f71 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Sat, 3 Sep 2016 23:21:56 +0530 Subject: [PATCH] do not create new revision when remapping posts --- lib/tasks/posts.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/posts.rake b/lib/tasks/posts.rake index dbb8ccf26..328bc8a91 100644 --- a/lib/tasks/posts.rake +++ b/lib/tasks/posts.rake @@ -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