forked from rDrama/rDrama
fix 500 error
parent
aa2b21c609
commit
f15e8372b3
|
@ -178,7 +178,7 @@ class Comment(Base):
|
||||||
@property
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
def author_name(self):
|
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
|
return self.author.user_name
|
||||||
|
|
||||||
@lazy
|
@lazy
|
||||||
|
|
|
@ -140,7 +140,7 @@ class Submission(Base):
|
||||||
@property
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
def author_name(self):
|
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
|
return self.author.user_name
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in New Issue