remotes/1693045480750635534/spooky-22
Aevann1 2021-07-26 03:14:26 +02:00
parent 27b06a283f
commit 1ae7d474e6
1 changed files with 1 additions and 4 deletions

View File

@ -68,10 +68,7 @@ class ModAction(Base, Stndrd, Age_times):
@property
def target_link(self):
if self.target_user:
if self.target_user.is_deleted:
return "[deleted user]"
else:
return f'<a href="{self.target_user.permalink}">{self.target_user.username}</a>'
return f'<a href="{self.target_user.permalink}">{self.target_user.username}</a>'
elif self.target_post:
return f'<a href="{self.target_post.permalink}">{self.target_post.title}</a>'
elif self.target_comment: