fix 500 error
parent
aa2b21c609
commit
f15e8372b3
|
@ -178,7 +178,7 @@ class Comment(Base):
|
|||
@property
|
||||
@lazy
|
||||
def author_name(self):
|
||||
if self.ghost and self.id != g.v.id: return '👻'
|
||||
if self.ghost and not (g.v and self.id == g.v.id): return '👻'
|
||||
return self.author.user_name
|
||||
|
||||
@lazy
|
||||
|
|
|
@ -140,7 +140,7 @@ class Submission(Base):
|
|||
@property
|
||||
@lazy
|
||||
def author_name(self):
|
||||
if self.ghost and self.id != g.v.id: return '👻'
|
||||
if self.ghost and not (g.v and self.id == g.v.id): return '👻'
|
||||
return self.author.user_name
|
||||
|
||||
@property
|
||||
|
|
Loading…
Reference in New Issue