FIX: Skip validations when updating group mentions.

This commit is contained in:
Guo Xiang Tan 2017-04-04 14:13:18 +08:00
parent 7f1c474e5b
commit aca972c08b

View File

@ -7,7 +7,7 @@ class GroupMentionsUpdater
posts.each do |post|
post.raw.gsub!(/(^|\s)(@#{previous_name})(\s|$)/, "\\1@#{current_name}\\3")
post.save!
post.save!(validate: false)
end
end
end