site_preview change for rdrama

master
Aevann1 2022-08-12 00:56:33 +02:00
parent 5aebc60764
commit 2957db79ce
4 changed files with 3 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 571 KiB

View File

@ -213,7 +213,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=3001" elif self.domain == SITE: return f"{SITE_FULL}/assets/images/{SITE_NAME}/site_preview.webp?v=3008"
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

View File

@ -597,7 +597,7 @@ class User(Base):
def banner_url(self): def banner_url(self):
if FEATURES['USERS_PROFILE_BANNER'] and self.bannerurl: if FEATURES['USERS_PROFILE_BANNER'] and self.bannerurl:
return self.bannerurl return self.bannerurl
return f"/i/{SITE_NAME}/site_preview.webp?v=3001" return f"/i/{SITE_NAME}/site_preview.webp?v=3008"
@property @property
@lazy @lazy

View File

@ -39,5 +39,5 @@ set CACHE_VER = {
{%- endmacro -%} {%- endmacro -%}
{%- macro asset_siteimg(name) -%} {%- macro asset_siteimg(name) -%}
/i/{{SITE_NAME}}/{{name}}?v=3007 /i/{{SITE_NAME}}/{{name}}?v=3008
{%- endmacro -%} {%- endmacro -%}