forked from rDrama/rDrama
1
0
Fork 0

Temporarily fix permas propagating as shadows.

master
Snakes 2022-09-22 20:45:59 -04:00
parent e66484e029
commit 3efaedbbec
Signed by: Snakes
GPG Key ID: E745A82778055C7E
1 changed files with 8 additions and 5 deletions

View File

@ -840,11 +840,14 @@ class User(Base):
g.db.add(self)
g.db.commit()
return
if u.is_suspended_permanently:
self.shadowbanned = u.banned_by.username
g.db.add(self)
g.db.commit()
return
## Disabled pending better solution: permabans haven't propagated for
## most of Summer 2022. We've gotten somewhat used to this. Think we only
## want them to propagate on account creation? Or at least needs discussion.
# if u.is_suspended_permanently:
# self.shadowbanned = u.banned_by.username
# g.db.add(self)
# g.db.commit()
# return
@property
@lazy