This commit is contained in:
Aevann1 2022-02-17 09:12:38 +02:00
parent 35c3453a24
commit d603fcf33c
2 changed files with 9 additions and 9 deletions

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()