fix shadow API leak

master
justcool393 2022-11-13 20:52:36 -06:00
parent b5b8b2927c
commit 79e6d237c1
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ class Comment(Base):
def json(self):
if self.is_banned:
data = {'is_banned': True,
'ban_reason': self.ban_reason,
'ban_reason': self.ban_reason if not self.shadowbanned else '',
'id': self.id,
'post': self.post.id if self.post else 0,
'level': self.level,