make the parantheses stack work for comments too

remotes/1693045480750635534/spooky-22
Aevann1 2022-08-30 14:18:35 +02:00
parent 12982dbb5a
commit 66aa4c5c35
1 changed files with 8 additions and 1 deletions

View File

@ -263,7 +263,14 @@ class Comment(Base):
@lazy
def author_name(self):
if self.ghost: return '👻'
if self.author.earlylife: return f'((({self.author.username})))'
if self.author.earlylife:
expiry = int(self.author.earlylife - time.time())
if expiry > 86400:
name = self.author.username
for i in range(int(expiry / 86400 + 1)):
name = f'((({name})))'
return name
return f'((({self.author.username})))'
return self.author.username
@lazy