This commit is contained in:
Aevann1 2021-12-14 02:50:49 +02:00
parent e0ebd28b28
commit accd2ec773

View file

@ -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,