This commit is contained in:
Aevann1 2021-11-16 01:13:29 +02:00
parent 9dd3eb89ea
commit e1a1b5243d
7 changed files with 77 additions and 29 deletions

View file

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