vcxcxv
This commit is contained in:
parent
9025364aa0
commit
326b43d4bd
1 changed files with 2 additions and 2 deletions
|
@ -248,7 +248,7 @@ class Comment(Base):
|
||||||
data= {
|
data= {
|
||||||
'id': self.id,
|
'id': self.id,
|
||||||
'level': self.level,
|
'level': self.level,
|
||||||
'author_name': self.author.username,
|
'author_name': self.author_name,
|
||||||
'body': self.body,
|
'body': self.body,
|
||||||
'body_html': self.body_html,
|
'body_html': self.body_html,
|
||||||
'is_bot': self.is_bot,
|
'is_bot': self.is_bot,
|
||||||
|
@ -314,7 +314,7 @@ class Comment(Base):
|
||||||
if self.deleted_utc or self.is_banned:
|
if self.deleted_utc or self.is_banned:
|
||||||
return data
|
return data
|
||||||
|
|
||||||
data["author"]=self.author.json_core
|
data["author"]=self.author.json_core if self.author_name != '👻' else ''
|
||||||
data["post"]=self.post.json_core if self.post else ''
|
data["post"]=self.post.json_core if self.post else ''
|
||||||
|
|
||||||
if self.level >= 2:
|
if self.level >= 2:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue