FEATURE: Blocking is optional when deleting a user from the review queue. (#13375)

Subclasses must call #delete_user_actions inside build_actions to support user deletion. The method adds a delete user bundle, which has a delete and a delete + block option. Every subclass is responsible for implementing these actions.
This commit is contained in:
Roman Rizzi
2021-06-15 12:35:45 -03:00
committed by GitHub
parent 503017474c
commit 4dc8c3c409
14 changed files with 117 additions and 88 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ class UserDestroyer
# After the user is deleted, remove the reviewable
if reviewable = ReviewableUser.pending.find_by(target: user)
reviewable.perform(@actor, :reject_user_delete)
reviewable.perform(@actor, :delete_user)
end
result