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.add(self)
g.db.commit() g.db.commit()
return return
if u.is_suspended_permanently: ## Disabled pending better solution: permabans haven't propagated for
self.shadowbanned = u.banned_by.username ## most of Summer 2022. We've gotten somewhat used to this. Think we only
g.db.add(self) ## want them to propagate on account creation? Or at least needs discussion.
g.db.commit() # if u.is_suspended_permanently:
return # self.shadowbanned = u.banned_by.username
# g.db.add(self)
# g.db.commit()
# return
@property @property
@lazy @lazy