forked from MarseyWorld/MarseyWorld
fix shadow API leak
parent
b5b8b2927c
commit
79e6d237c1
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue