This commit is contained in:
Peter Bhat Harkins 2020-09-02 17:05:24 -05:00
parent a158370d2e
commit 6891ca8d17
1 changed files with 1 additions and 2 deletions

View File

@ -253,9 +253,8 @@ class User < ApplicationRecord
self.banned_by_user_id = banner.id
self.banned_reason = reason
self.delete!
BanNotification.notify(self, banner, reason) unless self.deleted_at?
self.delete!
m = Moderation.new
m.moderator_user_id = banner.id