fix 500 error

pull/136/head
Aevann 2023-03-04 17:44:59 +02:00
parent aa2b21c609
commit f15e8372b3
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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