diff --git a/files/classes/comment.py b/files/classes/comment.py index 66f246835..29cbb9603 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -305,8 +305,7 @@ class Comment(Base): if self.level>=2: data['parent_comment_id']= self.parent_comment_id - if "replies" in self.__dict__: - data['replies']=[x.json_core for x in self.replies(None)] + data['replies'] = [x.json_core for x in self.replies()] return data