This commit is contained in:
Aevann1 2022-02-24 15:20:48 +02:00
parent bbd0995df6
commit 4019f5a5fe
8 changed files with 34 additions and 40 deletions

View file

@ -224,17 +224,17 @@ class Comment(Base):
@property
@lazy
def shortlink(self):
return f"{self.post.permalink}/{self.id}#context"
@property
@lazy
def sl(self):
return f"{self.post.shortlink}/{self.id}?context=8#context"
@property
@lazy
def permalink(self):
return f"{SITE_FULL}{self.sl}"
return f"{SITE_FULL}{self.shortlink}"
@property
@lazy
def morecomments(self):
return f"{self.post.permalink}/{self.id}#context"
@property
@lazy