From 5dcd678193e8e17ddca5d4384a9e0cb8983351cd Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 9 Jul 2022 14:02:21 +0200 Subject: [PATCH] Revert "try to fix this https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2278188?context=8#context" This reverts commit f166522b26033e78465d08e74db43d267cd2a066. --- files/classes/comment.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/classes/comment.py b/files/classes/comment.py index 29cbb9603..66f246835 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -305,7 +305,8 @@ class Comment(Base): if self.level>=2: data['parent_comment_id']= self.parent_comment_id - data['replies'] = [x.json_core for x in self.replies()] + if "replies" in self.__dict__: + data['replies']=[x.json_core for x in self.replies(None)] return data