remotes/1693045480750635534/spooky-22
Aevann1 2021-09-12 10:02:04 +02:00
parent abc146620e
commit 93917e3147
2 changed files with 3 additions and 0 deletions

View File

@ -150,6 +150,8 @@ class Comment(Base, Age_times, Scores, Stndrd, Fuzzing):
@property
@lazy
def permalink(self):
if self.post and self.post.club: return f"/comment/{self.id}/"
if self.post: return f"{self.post.permalink}/{self.id}/"
else: return f"/comment/{self.id}/"

View File

@ -128,6 +128,7 @@ class Submission(Base, Stndrd, Age_times, Scores, Fuzzing):
@property
@lazy
def permalink(self):
if self.club: return f"/post/{self.id}"
output = self.title.lower()