-
+
{% if PROCOINS_ENABLED %}
{% endif %}
diff --git a/files/templates/login.html b/files/templates/login.html
index ccf618cfd..68487ab70 100644
--- a/files/templates/login.html
+++ b/files/templates/login.html
@@ -1,10 +1,10 @@
-{%- from 'util/assetcache.html' import asset -%}
+{%- from 'util/assetcache.html' import asset, asset_siteimg with context -%}
{%- import 'util/helpers.html' as help -%}
-
+
diff --git a/files/templates/login_2fa.html b/files/templates/login_2fa.html
index 2867d9a32..7006b91e2 100644
--- a/files/templates/login_2fa.html
+++ b/files/templates/login_2fa.html
@@ -1,10 +1,10 @@
-{%- from 'util/assetcache.html' import asset -%}
+{%- from 'util/assetcache.html' import asset, asset_siteimg with context -%}
{%- import 'util/helpers.html' as help -%}
-
+
diff --git a/files/templates/lottery.html b/files/templates/lottery.html
index 7b74b36e6..689e78c6d 100644
--- a/files/templates/lottery.html
+++ b/files/templates/lottery.html
@@ -62,7 +62,7 @@
data-bs-toggle="tooltip"
data-bs-placement="bottom"
height="13"
- src="/i/{{SITE_NAME}}/coins.webp?v=2000"
+ src="{{asset_siteimg('coins.webp')}}"
title=""
aria-label="coins"
data-bs-original-title="coins"
@@ -123,7 +123,7 @@
data-bs-toggle="tooltip"
data-bs-placement="bottom"
height="13"
- src="/i/{{SITE_NAME}}/coins.webp?v=2000"
+ src="{{asset_siteimg('coins.webp')}}"
title=""
aria-label="coins"
data-bs-original-title="coins"
diff --git a/files/templates/settings.html b/files/templates/settings.html
index aaf417530..b007ba162 100644
--- a/files/templates/settings.html
+++ b/files/templates/settings.html
@@ -1,4 +1,4 @@
-{%- from 'util/assetcache.html' import asset -%}
+{%- from 'util/assetcache.html' import asset, asset_siteimg with context -%}
{%- import 'util/helpers.html' as help -%}
@@ -13,13 +13,13 @@
-
+
{% block pagetitle %}Settings - {{SITE_NAME}}{% endblock %}
-
+
@@ -30,7 +30,7 @@
-
+
diff --git a/files/templates/settings2.html b/files/templates/settings2.html
index 2e4fff1a6..ca9cad2c5 100644
--- a/files/templates/settings2.html
+++ b/files/templates/settings2.html
@@ -1,4 +1,4 @@
-{%- from 'util/assetcache.html' import asset -%}
+{%- from 'util/assetcache.html' import asset, asset_siteimg with context -%}
{%- import 'util/helpers.html' as help -%}
@@ -13,13 +13,13 @@
-
-
+
+
-
+
@@ -30,7 +30,7 @@
-
+
diff --git a/files/templates/sign_up.html b/files/templates/sign_up.html
index ca17a697d..025882988 100644
--- a/files/templates/sign_up.html
+++ b/files/templates/sign_up.html
@@ -1,9 +1,9 @@
-{%- from 'util/assetcache.html' import asset -%}
+{%- from 'util/assetcache.html' import asset, asset_siteimg with context -%}
{%- import 'util/helpers.html' as help -%}
-
+
@@ -17,7 +17,7 @@
-
+
@@ -28,7 +28,7 @@
-
+
{% if ref_user %}{{ref_user.username}} invites you to {{SITE_NAME}}{% else %}Sign up - {{SITE_NAME}}{% endif %}
diff --git a/files/templates/sign_up_failed_ref.html b/files/templates/sign_up_failed_ref.html
index a1124359a..8f29e2026 100644
--- a/files/templates/sign_up_failed_ref.html
+++ b/files/templates/sign_up_failed_ref.html
@@ -1,10 +1,10 @@
-{%- from 'util/assetcache.html' import asset -%}
+{%- from 'util/assetcache.html' import asset, asset_siteimg with context -%}
{%- import 'util/helpers.html' as help -%}
-
+
@@ -18,7 +18,7 @@
-
+
@@ -29,7 +29,7 @@
-
+
{% if ref_user %}{{ref_user.username}} invites you to {{SITE_NAME}}{% else %}{{SITE_NAME}}{% endif %}
diff --git a/files/templates/submission.html b/files/templates/submission.html
index fc4fb05fd..ddc9b1e2b 100644
--- a/files/templates/submission.html
+++ b/files/templates/submission.html
@@ -598,7 +598,7 @@
-
+
{% if p.is_video %}
{% elif p.is_audio %}
@@ -612,7 +612,7 @@
-
+
{% else %}
@@ -626,7 +626,7 @@
{% if not v_forbid_deleted -%}
-
+
{%- endif %}
@@ -637,7 +637,7 @@
{% if not v_forbid_deleted -%}
{% if p.author %}
{% endif %}
-
+
{%- endif %}
diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html
index 61c97fa2c..3a17ef8c8 100644
--- a/files/templates/submission_listing.html
+++ b/files/templates/submission_listing.html
@@ -1,4 +1,4 @@
-{%- from 'util/assetcache.html' import asset -%}
+{%- from 'util/assetcache.html' import asset, asset_siteimg with context -%}
{%- import 'util/helpers.html' as help -%}
{% if v %}
diff --git a/files/templates/submit.html b/files/templates/submit.html
index 672d060e2..a7e1b0e4c 100644
--- a/files/templates/submit.html
+++ b/files/templates/submit.html
@@ -1,4 +1,4 @@
-{%- from 'util/assetcache.html' import asset -%}
+{%- from 'util/assetcache.html' import asset, asset_siteimg with context -%}
{%- import 'util/helpers.html' as help -%}
@@ -12,7 +12,7 @@
-
+
{% if request.host == 'pcmemes.net' %}
{% set cc='Splash Mountain' %}
diff --git a/files/templates/userpage.html b/files/templates/userpage.html
index 21a886862..e14fcec41 100644
--- a/files/templates/userpage.html
+++ b/files/templates/userpage.html
@@ -113,7 +113,7 @@
{{u.coins}}
-
![coins coins](/i/{{SITE_NAME}}/coins.webp?v=2000)
+
![coins coins]({{asset_siteimg('coins.webp')}})
{% if PROCOINS_ENABLED %}
{{u.procoins}}
@@ -417,7 +417,7 @@
{{u.coins}}
-
![coins coins](/i/{{SITE_NAME}}/coins.webp?v=2000)
+
![coins coins]({{asset_siteimg('coins.webp')}})
{% if PROCOINS_ENABLED %}
{{u.procoins}}
diff --git a/files/templates/util/assetcache.html b/files/templates/util/assetcache.html
index 4a5534260..6682ba59e 100644
--- a/files/templates/util/assetcache.html
+++ b/files/templates/util/assetcache.html
@@ -31,6 +31,21 @@ set CACHE_VER = {
'images/badges/': 1022,
}
-%}
+{%-
+set CACHE_VER_SITEIMG = {
+ 'rDrama': 2000,
+ 'FunOnly': 2000,
+ 'PCM': 2000,
+ 'Cringetopia': 2000,
+ 'WPD': 2000,
+ 'LGBDropTheT': 2010,
+}
+-%}
+
{%- macro asset(name, file='') -%}
/assets/{{name}}{{file}}?v={{ CACHE_VER[name] }}
{%- endmacro -%}
+
+{%- macro asset_siteimg(name) -%}
+/i/{{SITE_NAME}}/{{name}}?v={{ CACHE_VER_SITEIMG[name] }}
+{%- endmacro -%}