From 79e6d237c12d57fe12771ba95f137b61809ddc2b Mon Sep 17 00:00:00 2001 From: justcool393 Date: Sun, 13 Nov 2022 20:52:36 -0600 Subject: [PATCH] fix shadow API leak --- files/classes/comment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/classes/comment.py b/files/classes/comment.py index 3c9607b02..505ccd889 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -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,