fdsfds
This commit is contained in:
parent
8a84300137
commit
cb59a39c9f
6 changed files with 38 additions and 24 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue