remotes/1693045480750635534/spooky-22
Aevann1 2021-12-17 08:13:40 +02:00
parent ae6c8d9ee7
commit b3b193c45f
1 changed files with 7 additions and 1 deletions

View File

@ -226,6 +226,12 @@ class Submission(Base):
if self.thumb_url.startswith('/'): return 'https://rdrama.net' + self.thumb_url
return self.thumb_url
@property
@lazy
def full_url(self):
if self.url.startswith('/'): return 'https://rdrama.net' + self.url
return self.url
@property
@lazy
def json_raw(self):
@ -243,7 +249,7 @@ class Submission(Base):
'is_bot': self.is_bot,
'thumb_url': self.full_thumb,
'domain': self.domain,
'url': self.url,
'url': self.full_url,
'body': self.body,
'body_html': self.body_html,
'created_utc': self.created_utc,