fd
This commit is contained in:
parent
a924bf62be
commit
98fe9248ad
5 changed files with 20 additions and 7 deletions
|
@ -8,6 +8,9 @@ from files.helpers.const import SLURS
|
|||
from files.__main__ import Base
|
||||
from .mix_ins import *
|
||||
from .flags import CommentFlag
|
||||
from os import environ
|
||||
|
||||
site = environ.get("DOMAIN").strip()
|
||||
|
||||
class CommentAux(Base):
|
||||
|
||||
|
@ -139,6 +142,11 @@ class Comment(Base, Age_times, Scores, Stndrd, Fuzzing):
|
|||
if not r and r != []: r = sorted([x for x in self.child_comments], key=lambda x: x.score, reverse=True)
|
||||
return r
|
||||
|
||||
@property
|
||||
@lazy
|
||||
def shortlink(self):
|
||||
return f"https://{site}/comment/{self.id}"
|
||||
|
||||
@property
|
||||
@lazy
|
||||
def permalink(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue