This commit is contained in:
Aevann1 2022-01-28 22:02:35 +02:00
parent 8c1ac90b10
commit 0677106b21
10 changed files with 24 additions and 31 deletions

View file

@ -233,10 +233,10 @@ class Comment(Base):
@property
@lazy
def permalink(self):
if self.post and self.post.club: return f"/comment/{self.id}?context=9#context"
if self.post and self.post.club: return f"{SITE_FULL}/comment/{self.id}?context=9#context"
if self.post: return f"{self.post.permalink}/{self.id}?context=9#context"
else: return f"/comment/{self.id}?context=9#context"
if self.post: return f"{SITE_FULL}{self.post.permalink}/{self.id}?context=9#context"
else: return f"{SITE_FULL}/comment/{self.id}?context=9#context"
@property
@lazy