refactor forum notifications for tag changes
This commit is contained in:
@@ -323,7 +323,7 @@ class Artist < ActiveRecord::Base
|
||||
# potential race condition but unlikely
|
||||
unless TagImplication.where(:antecedent_name => name, :consequent_name => "banned_artist").exists?
|
||||
tag_implication = TagImplication.create!(:antecedent_name => name, :consequent_name => "banned_artist", :skip_secondary_validations => true)
|
||||
tag_implication.approve!(CurrentUser.user)
|
||||
tag_implication.approve!(approver: CurrentUser.user)
|
||||
end
|
||||
|
||||
update_column(:is_banned, true)
|
||||
|
||||
Reference in New Issue
Block a user