forked from rDrama/rDrama
fdsfds
parent
ae6c8d9ee7
commit
b3b193c45f
|
@ -226,6 +226,12 @@ class Submission(Base):
|
||||||
if self.thumb_url.startswith('/'): return 'https://rdrama.net' + self.thumb_url
|
if self.thumb_url.startswith('/'): return 'https://rdrama.net' + self.thumb_url
|
||||||
return 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
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
def json_raw(self):
|
def json_raw(self):
|
||||||
|
@ -243,7 +249,7 @@ class Submission(Base):
|
||||||
'is_bot': self.is_bot,
|
'is_bot': self.is_bot,
|
||||||
'thumb_url': self.full_thumb,
|
'thumb_url': self.full_thumb,
|
||||||
'domain': self.domain,
|
'domain': self.domain,
|
||||||
'url': self.url,
|
'url': self.full_url,
|
||||||
'body': self.body,
|
'body': self.body,
|
||||||
'body_html': self.body_html,
|
'body_html': self.body_html,
|
||||||
'created_utc': self.created_utc,
|
'created_utc': self.created_utc,
|
||||||
|
|
Loading…
Reference in New Issue