remotes/1693045480750635534/spooky-22
Aevann1 2022-02-04 05:06:49 +02:00
parent 34e77b058e
commit 7379d777e6
2 changed files with 7 additions and 7 deletions

View File

@ -223,7 +223,7 @@ class Comment(Base):
@property
@lazy
def shortlink(self):
return f"/comment/{self.id}#context"
return f"{SITE_FULL}/comment/{self.id}#context"
@property
@lazy

View File

@ -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