mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: :reject_user_delete action can only be handled by ReviewableUser (#8068)
This commit is contained in:
@@ -116,7 +116,7 @@ class UserDestroyer
|
||||
end
|
||||
|
||||
# After the user is deleted, remove the reviewable
|
||||
if reviewable = Reviewable.pending.find_by(target: user)
|
||||
if reviewable = ReviewableUser.pending.find_by(target: user)
|
||||
reviewable.perform(@actor, :reject_user_delete)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user