mn
This commit is contained in:
parent
35c3453a24
commit
d603fcf33c
2 changed files with 9 additions and 9 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue