forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-12-17 08:20:22 +02:00
parent 0af51e3809
commit fbbae48405
2 changed files with 3 additions and 3 deletions

View File

@ -223,13 +223,13 @@ class Submission(Base):
@property
@lazy
def full_thumb(self):
if self.thumb_url.startswith('/'): return 'https://rdrama.net' + self.thumb_url
if self.thumb_url.startswith('/'): return f'https://{site}' + self.thumb_url
return self.thumb_url
@property
@lazy
def full_url(self):
if self.url.startswith('/'): return 'https://rdrama.net' + self.url
if self.url.startswith('/'): return f'https://{site}' + self.url
return self.url
@property

View File

@ -446,7 +446,7 @@ class User(Base):
@property
@lazy
def full_profileurl(self):
if self.profile_url.startswith('/'): return 'https://rdrama.net' + self.profile_url
if self.profile_url.startswith('/'): return f'https://{site}' + self.profile_url
return self.profile_url
@property