From fbbae48405260a6be97b4d5796c1ab64eda9d8aa Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 17 Dec 2021 08:20:22 +0200 Subject: [PATCH] fsddfs --- files/classes/submission.py | 4 ++-- files/classes/user.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/classes/submission.py b/files/classes/submission.py index c44c57fef..bdc2a63d8 100644 --- a/files/classes/submission.py +++ b/files/classes/submission.py @@ -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 diff --git a/files/classes/user.py b/files/classes/user.py index 1d0612a76..b03fad73d 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -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