From 995e6e9edbc9a3049cd603ac95595d7787076b08 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 10 Jun 2022 21:21:25 +0200 Subject: [PATCH] add thumbnail for posts linking to same site --- files/classes/submission.py | 1 + 1 file changed, 1 insertion(+) diff --git a/files/classes/submission.py b/files/classes/submission.py index 9ea0b3edf..14bd29684 100644 --- a/files/classes/submission.py +++ b/files/classes/submission.py @@ -260,6 +260,7 @@ class Submission(Base): return self.thumburl elif self.is_youtube or self.is_video: return f"{SITE_FULL}/assets/images/default_thumb_video.webp?v=1" elif self.is_audio: return f"{SITE_FULL}/assets/images/default_thumb_audio.webp?v=1" + elif self.domain == SITE: return f"{SITE_FULL}/assets/images/{SITE_NAME}/site_preview.webp?v=1" else: return f"{SITE_FULL}/assets/images/default_thumb_link.webp?v=1" @property