mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 06:18:14 +08:00
FEATURE: Send suspect users to the review queue (#8811)
This commit is contained in:
@ -59,6 +59,10 @@ class ReviewableUser < Reviewable
|
||||
if target.present?
|
||||
destroyer = UserDestroyer.new(performed_by)
|
||||
|
||||
if reviewable_scores.any? { |rs| rs.reason == 'suspect_user' }
|
||||
DiscourseEvent.trigger(:suspect_user_deleted, target)
|
||||
end
|
||||
|
||||
begin
|
||||
delete_args = {}
|
||||
delete_args[:block_ip] = true if args[:block_ip]
|
||||
|
Reference in New Issue
Block a user