From ee3526d78edd0b94013cec25f66052df00d19e4f Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 14 Dec 2021 02:50:49 +0200 Subject: [PATCH] fsdfsd --- 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 d98f44183..ac44d2253 100644 --- a/files/classes/comment.py +++ b/files/classes/comment.py @@ -242,7 +242,7 @@ class Comment(Base): 'permalink': self.permalink, 'is_pinned': self.is_pinned, 'distinguish_level': self.distinguish_level, - 'post_id': self.post.id, + 'post_id': self.post.id if self.post else None, 'score': self.score, 'upvotes': self.upvotes, 'downvotes': self.downvotes,