From 79824227de11ecd7ee990d11bde2312a4369db0f Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 9 Jul 2022 14:21:28 +0000 Subject: [PATCH] Revert "Revert "Revert "try to fix this https://chapotraphouse.club/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2278188?context=8#context""" This reverts commit 95194359fa0a2c8c3a82e7beecbe98fff87929b5. --- 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