mn
This commit is contained in:
parent
35c3453a24
commit
d603fcf33c
2 changed files with 9 additions and 9 deletions
|
@ -233,14 +233,14 @@ class Comment(Base):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
def author_name(self):
|
def permalink(self):
|
||||||
if self.ghost: return '👻'
|
return f"{SITE_FULL}{self.sl}"
|
||||||
else: return self.author.username
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
def permalink(self):
|
def author_name(self):
|
||||||
return f"{SITE_FULL}/comment/{self.id}?context=8#context"
|
if self.ghost: return '👻'
|
||||||
|
else: return self.author.username
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
|
|
|
@ -208,15 +208,15 @@ class Submission(Base):
|
||||||
@property
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
def sl(self):
|
def sl(self):
|
||||||
return f'/post/{self.id}'
|
link = f"/post/{self.id}"
|
||||||
|
if self.sub: link = f"/s/{self.sub}{link}"
|
||||||
|
return link
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
def shortlink(self):
|
def shortlink(self):
|
||||||
link = f"/post/{self.id}"
|
link = self.sl
|
||||||
if self.sub: link = f"/s/{self.sub}{link}"
|
|
||||||
|
|
||||||
if self.club: return link
|
if self.club: return link
|
||||||
|
|
||||||
output = self.title.lower()
|
output = self.title.lower()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue