This commit is contained in:
Aevann1 2022-01-12 03:19:13 +02:00
parent 698a67c684
commit 00a59e869f
17 changed files with 75 additions and 71 deletions

View file

@ -281,7 +281,7 @@ class Comment(Base):
'level': self.level,
'parent': self.parent_fullname
}
elif self.deleted_utc > 0:
elif self.deleted_utc:
data= {'deleted_utc': self.deleted_utc,
'id': self.id,
'post': self.post.id if self.post else 0,
@ -305,7 +305,7 @@ class Comment(Base):
data=self.json_core
if self.deleted_utc > 0 or self.is_banned:
if self.deleted_utc or self.is_banned:
return data
data["author"]=self.author.json_core