FEATURE: Send suspect users to the review queue (#8811)

This commit is contained in:
Roman Rizzi
2020-01-29 15:38:27 -03:00
committed by GitHub
parent 09e8be3209
commit 2ee6a615b7
8 changed files with 107 additions and 1 deletions

View File

@ -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]