forked from rDrama/rDrama
fix %OP% snappy quote on ghost threads
parent
8b4682268e
commit
dfd8ed85c9
|
@ -319,7 +319,7 @@ class Comment(Base):
|
||||||
@property
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
def author_name(self):
|
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
|
return self.author.user_name
|
||||||
|
|
||||||
@lazy
|
@lazy
|
||||||
|
|
|
@ -156,7 +156,7 @@ class Post(Base):
|
||||||
@property
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
def author_name(self):
|
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
|
return self.author.user_name
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in New Issue