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 @property
@lazy @lazy
def author_name(self): def permalink(self):
if self.ghost: return '👻' return f"{SITE_FULL}{self.sl}"
else: return self.author.username
@property @property
@lazy @lazy
def permalink(self): def author_name(self):
return f"{SITE_FULL}/comment/{self.id}?context=8#context" if self.ghost: return '👻'
else: return self.author.username
@property @property
@lazy @lazy

View File

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