Skip to content

Commit

Permalink
useful to see email for banned users who might attempt a return
Browse files Browse the repository at this point in the history
  • Loading branch information
pushcx committed Aug 18, 2019
1 parent db3d645 commit 12a15de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ def disable_2fa!

# ensures some users talk to a mod before reactivating
def good_riddance?
return if self.is_banned? # https://www.youtube.com/watch?v=UcZzlPGnKdU
self.email = "#{self.username}@lobsters.example" if \
self.karma < 0 ||
(self.comments.where('created_at >= now() - interval 30 day AND is_moderated').count +
Expand Down

0 comments on commit 12a15de

Please sign in to comment.