forked from MarseyWorld/MarseyWorld
add thumbnail for posts linking to same site
parent
2c3ac36278
commit
995e6e9edb
|
@ -260,6 +260,7 @@ class Submission(Base):
|
||||||
return self.thumburl
|
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_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.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"
|
else: return f"{SITE_FULL}/assets/images/default_thumb_link.webp?v=1"
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in New Issue