czx
This commit is contained in:
parent
8c1ac90b10
commit
0677106b21
10 changed files with 24 additions and 31 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue