This commit is contained in:
Aevann1 2022-01-17 23:26:03 +02:00
parent 8a84300137
commit cb59a39c9f
6 changed files with 38 additions and 24 deletions

View file

@ -225,6 +225,12 @@ class Comment(Base):
def shortlink(self):
return f"/comment/{self.id}#context"
@property
@lazy
def author_name(self):
if self.post and (self.award_count('ghosts') or self.post.award_count('ghosts')): return '👻'
else: return self.author.username
@property
@lazy
def permalink(self):