fsdfsd
This commit is contained in:
parent
701f8b9b87
commit
6d8ff75daf
1 changed files with 7 additions and 1 deletions
|
@ -443,6 +443,12 @@ class User(Base):
|
||||||
|
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
@property
|
||||||
|
@lazy
|
||||||
|
def full_profileurl(self):
|
||||||
|
if self.profile_url.startswith('/'): return 'https://rdrama.net' + self.profile_url
|
||||||
|
return self.profile_url
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
def json_raw(self):
|
def json_raw(self):
|
||||||
|
@ -452,7 +458,7 @@ class User(Base):
|
||||||
'created_utc': self.created_utc,
|
'created_utc': self.created_utc,
|
||||||
'id': self.id,
|
'id': self.id,
|
||||||
'is_private': self.is_private,
|
'is_private': self.is_private,
|
||||||
'profile_url': self.profile_url,
|
'profile_url': self.full_profileurl,
|
||||||
'bannerurl': self.banner_url,
|
'bannerurl': self.banner_url,
|
||||||
'bio': self.bio,
|
'bio': self.bio,
|
||||||
'bio_html': self.bio_html_eager,
|
'bio_html': self.bio_html_eager,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue