mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 03:18:23 +00: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…
x
Reference in New Issue
Block a user