FIX: Skip validations when updating group mentions.
This commit is contained in:
parent
7f1c474e5b
commit
aca972c08b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue