Merge pull request #133 from Aevann1/master

fdsfsd
remotes/1693045480750635534/spooky-22
Aevann1 2021-12-13 16:51:34 -08:00 committed by GitHub
commit 368330b473
1 changed files with 1 additions and 1 deletions

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 0,
'score': self.score,
'upvotes': self.upvotes,
'downvotes': self.downvotes,