dgf
This commit is contained in:
parent
470cc45516
commit
81527aaebf
2 changed files with 7 additions and 7 deletions
|
@ -192,11 +192,6 @@ class Submission(Base):
|
|||
@property
|
||||
@lazy
|
||||
def shortlink(self):
|
||||
return f"/post/{self.id}"
|
||||
|
||||
@property
|
||||
@lazy
|
||||
def permalink(self):
|
||||
if self.club: return f"{SITE_FULL}/post/{self.id}"
|
||||
|
||||
output = self.title.lower()
|
||||
|
@ -210,7 +205,12 @@ class Submission(Base):
|
|||
|
||||
if not output: output = '-'
|
||||
|
||||
return f"{SITE_FULL}/post/{self.id}/{output}"
|
||||
return f"/post/{self.id}/{output}"
|
||||
|
||||
@property
|
||||
@lazy
|
||||
def permalink(self):
|
||||
return SITE_FULL + self.shortlink
|
||||
|
||||
@property
|
||||
@lazy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue