mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 08:57:10 -06:00
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
Block a user