forked from rDrama/rDrama
fix %OP% snappy quote on ghost threads
parent
8b4682268e
commit
dfd8ed85c9
|
@ -319,7 +319,7 @@ class Comment(Base):
|
|||
@property
|
||||
@lazy
|
||||
def author_name(self):
|
||||
if self.ghost and not (g.v and self.id == g.v.id): return '👻'
|
||||
if self.ghost and not (hasattr(g, 'v') and g.v and self.id == g.v.id): return '👻'
|
||||
return self.author.user_name
|
||||
|
||||
@lazy
|
||||
|
|
|
@ -156,7 +156,7 @@ class Post(Base):
|
|||
@property
|
||||
@lazy
|
||||
def author_name(self):
|
||||
if self.ghost and not (g.v and self.id == g.v.id): return '👻'
|
||||
if self.ghost and not (hasattr(g, 'v') and g.v and self.id == g.v.id): return '👻'
|
||||
return self.author.user_name
|
||||
|
||||
@property
|
||||
|
|
Loading…
Reference in New Issue