remotes/1693045480750635534/spooky-22
Aevann1 2022-02-17 09:12:38 +02:00
parent ed06bddaaa
commit ed907f87dc
2 changed files with 9 additions and 9 deletions

View File

@ -233,14 +233,14 @@ class Comment(Base):
@property
@lazy
def author_name(self):
if self.ghost: return '👻'
else: return self.author.username
def permalink(self):
return f"{SITE_FULL}{self.sl}"
@property
@lazy
def permalink(self):
return f"{SITE_FULL}/comment/{self.id}?context=8#context"
def author_name(self):
if self.ghost: return '👻'
else: return self.author.username
@property
@lazy

View File

@ -208,15 +208,15 @@ class Submission(Base):
@property
@lazy
def sl(self):
return f'/post/{self.id}'
link = f"/post/{self.id}"
if self.sub: link = f"/s/{self.sub}{link}"
return link
@property
@lazy
def shortlink(self):
link = f"/post/{self.id}"
if self.sub: link = f"/s/{self.sub}{link}"
link = self.sl
if self.club: return link
output = self.title.lower()