From f9ea51611f2bc11f00d929b435b3588b13fede95 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 26 Apr 2022 02:36:03 +0200 Subject: [PATCH] fds --- files/classes/submission.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/files/classes/submission.py b/files/classes/submission.py index b30cf1e19..a722ad56d 100644 --- a/files/classes/submission.py +++ b/files/classes/submission.py @@ -253,13 +253,13 @@ class Submission(Base): @property @lazy def thumb_url(self): - if self.over_18: return "/assets/images/nsfw.webp?v=1" - elif not self.url: return f"/assets/images/{SITE_NAME}/default_text.webp?v=1" + if self.over_18: return f"{SITE_FULL}/assets/images/nsfw.webp?v=1" + elif not self.url: return f"{SITE_FULL}/assets/images/{SITE_NAME}/default_text.webp?v=1" elif self.thumburl: if self.thumburl.startswith('/'): return SITE_FULL + self.thumburl return self.thumburl - elif self.is_youtube or self.is_video: return "/assets/images/default_thumb_yt.webp?v=1" - else: return "/assets/images/default_thumb_link.webp?v=1" + elif self.is_youtube or self.is_video: return f"{SITE_FULL}/assets/images/default_thumb_yt.webp?v=1" + else: return f"{SITE_FULL}/assets/images/default_thumb_link.webp?v=1" @property @lazy