add thumbnail for posts linking to same site

master
Aevann1 2022-06-10 21:21:25 +02:00
parent 2c3ac36278
commit 995e6e9edb
1 changed files with 1 additions and 0 deletions

View File

@ -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