This commit is contained in:
Aevann1 2021-12-17 08:20:22 +02:00
parent 6d8ff75daf
commit 6d9727d0b8
2 changed files with 3 additions and 3 deletions

View file

@ -223,13 +223,13 @@ class Submission(Base):
@property @property
@lazy @lazy
def full_thumb(self): 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 return self.thumb_url
@property @property
@lazy @lazy
def full_url(self): 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 return self.url
@property @property

View file

@ -446,7 +446,7 @@ class User(Base):
@property @property
@lazy @lazy
def full_profileurl(self): 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 return self.profile_url
@property @property