From 93422e2be975ec873d8ce7008d51b277640df528 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 25 Apr 2023 18:12:40 +0200 Subject: [PATCH] cache-bust all --- files/assets/browserconfig.xml | 2 +- files/assets/css/agendaposter.css | 2 +- files/assets/css/main.css | 2 +- files/assets/events/fistmas/css/fistmas.css | 10 +-- files/assets/events/fistmas/css/lights.css | 2 +- files/assets/js/casino/roulette_screen.js | 4 +- files/assets/js/chat.js | 4 +- files/assets/js/fp.js | 2 +- files/assets/js/hats.js | 2 +- files/assets/js/lottery.js | 2 +- files/assets/js/settings_profile.js | 2 +- files/assets/manifest_WPD.json | 4 +- files/assets/manifest_rDrama.json | 4 +- files/assets/offline.html | 2 +- files/classes/badges.py | 4 +- files/classes/sub.py | 4 +- files/classes/submission.py | 12 ++-- files/classes/user.py | 6 +- files/helpers/alerts.py | 2 +- files/routes/jinja2.py | 2 +- files/templates/admin/patrons.html | 2 +- files/templates/casino/game_screen.html | 4 +- files/templates/casino/roulette_screen.html | 4 +- files/templates/casino/slots_screen.html | 6 +- files/templates/comments.html | 6 +- files/templates/errors/WPD/404.html | 74 ++++++++++----------- files/templates/errors/WPD/502.html | 74 ++++++++++----------- files/templates/errors/rDrama/404.html | 72 ++++++++++---------- files/templates/errors/rDrama/502.html | 72 ++++++++++---------- files/templates/events/DKD/music.html | 2 +- files/templates/events/fistmas/awards.html | 2 +- files/templates/events/fistmas/music.html | 2 +- files/templates/hats.html | 4 +- files/templates/header.html | 4 +- files/templates/log.html | 2 +- files/templates/lottery.html | 4 +- files/templates/notifications.html | 2 +- files/templates/sidebar_WPD.html | 2 +- files/templates/user_in_table.html | 2 +- files/templates/user_listing.html | 2 +- files/templates/userpage/banner.html | 16 ++--- files/templates/util/html_head.html | 14 ++-- files/templates/util/macros.html | 8 +-- 43 files changed, 227 insertions(+), 227 deletions(-) diff --git a/files/assets/browserconfig.xml b/files/assets/browserconfig.xml index b06078e36..c0927ba85 100644 --- a/files/assets/browserconfig.xml +++ b/files/assets/browserconfig.xml @@ -2,7 +2,7 @@ - + #FF66AC diff --git a/files/assets/css/agendaposter.css b/files/assets/css/agendaposter.css index 6f22efe11..3d4535848 100644 --- a/files/assets/css/agendaposter.css +++ b/files/assets/css/agendaposter.css @@ -1,3 +1,3 @@ html { - cursor:url('/i/dildo.webp?x=1'), auto; + cursor:url('/i/dildo.webp?x=2'), auto; } diff --git a/files/assets/css/main.css b/files/assets/css/main.css index cabe470e3..02077ae16 100644 --- a/files/assets/css/main.css +++ b/files/assets/css/main.css @@ -5627,7 +5627,7 @@ lite-youtube > .lty-playbtn { left: 50%; z-index: 1; background-color: transparent; - background-image: url('/i/youtube.webp?x=1'); + background-image: url('/i/youtube.webp?x=2'); transition: filter .1s cubic-bezier(0, 0, 0.2, 1); border: none; } diff --git a/files/assets/events/fistmas/css/fistmas.css b/files/assets/events/fistmas/css/fistmas.css index b867cd26b..48dc0df2b 100644 --- a/files/assets/events/fistmas/css/fistmas.css +++ b/files/assets/events/fistmas/css/fistmas.css @@ -136,15 +136,15 @@ color: #7a7a7a !important; } body { - cursor: url(/assets/events/fistmas/images/cursor.webp?x=1), auto !important; + cursor: url(/assets/events/fistmas/images/cursor.webp?x=2), auto !important; } textarea, input[type=textbox], input[type=search] { - cursor: url(/assets/events/fistmas/images/text.webp?x=1) 9 14, auto !important; + cursor: url(/assets/events/fistmas/images/text.webp?x=2) 9 14, auto !important; } .btn, input[type=button], button, a { - cursor: url(/assets/events/fistmas/images/pointer.webp?x=1), auto !important; + cursor: url(/assets/events/fistmas/images/pointer.webp?x=2), auto !important; } .fa-moon-over-sun:before{content:"\f74a"} @@ -170,7 +170,7 @@ textarea, input[type=textbox], input[type=search] { left: 0; height: 57px; width: 100%; - background: url('/assets/events/fistmas/images/lights.webp?x=1'); + background: url('/assets/events/fistmas/images/lights.webp?x=2'); animation: lights 1s infinite steps(2); pointer-events: none; } @@ -195,7 +195,7 @@ textarea, input[type=textbox], input[type=search] { .btn::after, .snow-cap::after { content: ''; pointer-events: none; - background: url("/assets/events/fistmas/images/snowcap.webp?x=1") repeat-x; + background: url("/assets/events/fistmas/images/snowcap.webp?x=2") repeat-x; background-size: contain; position: absolute; bottom: -18px; diff --git a/files/assets/events/fistmas/css/lights.css b/files/assets/events/fistmas/css/lights.css index 9e3923706..04fb6d1c2 100644 --- a/files/assets/events/fistmas/css/lights.css +++ b/files/assets/events/fistmas/css/lights.css @@ -5,7 +5,7 @@ left: 0; height: 57px; width: 100%; - background: url('/assets/events/fistmas/images/lights.webp?x=1'); + background: url('/assets/events/fistmas/images/lights.webp?x=2'); animation: lights 1s infinite steps(2); pointer-events: none; z-index: 1; diff --git a/files/assets/js/casino/roulette_screen.js b/files/assets/js/casino/roulette_screen.js index 2050fe138..0b68d4da5 100644 --- a/files/assets/js/casino/roulette_screen.js +++ b/files/assets/js/casino/roulette_screen.js @@ -221,7 +221,7 @@ function buildRouletteBets(bets) { const normalizedBets = formatNormalizedBets(bets); const coinImgHtml = ` coin { script.onload = resolve; script.onerror = reject; script.async = true; - script.src = "/assets/js/vendor/fp.js?x=1"; + script.src = "/assets/js/vendor/fp.js?x=2"; document.head.appendChild(script); }) .then(() => FingerprintJS.load({token: fp_token})); diff --git a/files/assets/js/hats.js b/files/assets/js/hats.js index 86fc717ea..18aeaf1d6 100644 --- a/files/assets/js/hats.js +++ b/files/assets/js/hats.js @@ -2,7 +2,7 @@ function equip_hat(t, hat_id, hat_name) { const profile_pic_hat = document.getElementById("profile-pic-35-hat"); function extra_actions(xhr) { if(xhr.status == 200) { - profile_pic_hat.src = `/i/hats/${hat_name}.webp?x=1` + profile_pic_hat.src = `/i/hats/${hat_name}.webp?x=2` profile_pic_hat.classList.remove('d-none') } } diff --git a/files/assets/js/lottery.js b/files/assets/js/lottery.js index fa4d6cfb8..9ca91ce99 100644 --- a/files/assets/js/lottery.js +++ b/files/assets/js/lottery.js @@ -12,7 +12,7 @@ const lotteryOnReady = function () { setTimeout(() => { ticketPulled.style.display = "none"; ticketPulled.src = - "/i/rDrama/lottery_active.webp?x=1&t=" + + "/i/rDrama/lottery_active.webp?x=2&t=" + new Date().getTime(); purchaseTicket.disabled = false; }, 1780); diff --git a/files/assets/js/settings_profile.js b/files/assets/js/settings_profile.js index 2ebc07c76..a2caf83ae 100644 --- a/files/assets/js/settings_profile.js +++ b/files/assets/js/settings_profile.js @@ -89,7 +89,7 @@ function updatebgselection(){ let bgsDir = backgrounds[bgselector.selectedIndex].folder; for (i=0; i < bgsToDisplay.length; i++) { let onclickPost = bgsDir + "/" + bgsToDisplay[i]; - str += ``; + str += ``; } bgContainer.innerHTML = str; diff --git a/files/assets/manifest_WPD.json b/files/assets/manifest_WPD.json index 298359ed6..73d691005 100644 --- a/files/assets/manifest_WPD.json +++ b/files/assets/manifest_WPD.json @@ -8,13 +8,13 @@ "description": "WPD", "icons": [ { - "src": "/i/WPD/192.png?x=1", + "src": "/i/WPD/192.png?x=2", "sizes": "192x192", "type": "image/png", "purpose": "any" }, { - "src": "/i/WPD/512.png?x=1", + "src": "/i/WPD/512.png?x=2", "sizes": "512x512", "type": "image/png" } diff --git a/files/assets/manifest_rDrama.json b/files/assets/manifest_rDrama.json index e218bfc76..e23501d82 100644 --- a/files/assets/manifest_rDrama.json +++ b/files/assets/manifest_rDrama.json @@ -8,13 +8,13 @@ "description": "rDrama", "icons": [ { - "src": "/i/rDrama/192.png?x=1", + "src": "/i/rDrama/192.png?x=2", "sizes": "192x192", "type": "image/png", "purpose": "any" }, { - "src": "/i/rDrama/512.png?x=1", + "src": "/i/rDrama/512.png?x=2", "sizes": "512x512", "type": "image/png" } diff --git a/files/assets/offline.html b/files/assets/offline.html index 183e009fc..8b6574165 100644 --- a/files/assets/offline.html +++ b/files/assets/offline.html @@ -1,7 +1,7 @@ No Internet Connection - +
diff --git a/files/classes/badges.py b/files/classes/badges.py index 5c1436a1e..af15cce35 100644 --- a/files/classes/badges.py +++ b/files/classes/badges.py @@ -27,9 +27,9 @@ class BadgeDef(Base): @lazy def path(self): if 20 < self.id < 28 or self.id == 222: - return f"{SITE_FULL_IMAGES}/i/{SITE_NAME}/badges/{self.id}.webp?x=1" + return f"{SITE_FULL_IMAGES}/i/{SITE_NAME}/badges/{self.id}.webp?x=2" - return f"{SITE_FULL_IMAGES}/i/badges/{self.id}.webp?x=1" + return f"{SITE_FULL_IMAGES}/i/badges/{self.id}.webp?x=2" class Badge(Base): diff --git a/files/classes/sub.py b/files/classes/sub.py index e5548b1d3..cacd433c3 100644 --- a/files/classes/sub.py +++ b/files/classes/sub.py @@ -41,7 +41,7 @@ class Sub(Base): @lazy def sidebar_url(self): if self.sidebarurl: return self.sidebarurl - return f'{SITE_FULL_IMAGES}/i/{SITE_NAME}/sidebar.webp?x=1' + return f'{SITE_FULL_IMAGES}/i/{SITE_NAME}/sidebar.webp?x=2' @property @lazy @@ -62,7 +62,7 @@ class Sub(Base): @lazy def marsey_url(self): if self.marseyurl: return self.marseyurl - return f'{SITE_FULL_IMAGES}/i/{SITE_NAME}/headericon.webp?x=1' + return f'{SITE_FULL_IMAGES}/i/{SITE_NAME}/headericon.webp?x=2' @property @lazy diff --git a/files/classes/submission.py b/files/classes/submission.py index 084659e37..f5e75ea41 100644 --- a/files/classes/submission.py +++ b/files/classes/submission.py @@ -159,20 +159,20 @@ class Submission(Base): @lazy def thumb_url(self): if self.over_18: - return f"{SITE_FULL_IMAGES}/i/nsfw.webp?x=1" + return f"{SITE_FULL_IMAGES}/i/nsfw.webp?x=2" elif not self.url: - return f"{SITE_FULL_IMAGES}/i/{SITE_NAME}/default_text.webp?x=1" + return f"{SITE_FULL_IMAGES}/i/{SITE_NAME}/default_text.webp?x=2" elif self.thumburl: if self.thumburl.startswith('/'): return SITE_FULL + self.thumburl return self.thumburl elif self.is_youtube or self.is_video: - return f"{SITE_FULL_IMAGES}/i/default_thumb_video.webp?x=1" + return f"{SITE_FULL_IMAGES}/i/default_thumb_video.webp?x=2" elif self.is_audio: - return f"{SITE_FULL_IMAGES}/i/default_thumb_audio.webp?x=1" + return f"{SITE_FULL_IMAGES}/i/default_thumb_audio.webp?x=2" elif self.domain == SITE: - return f"{SITE_FULL_IMAGES}/i/{SITE_NAME}/site_preview.webp?x=1" + return f"{SITE_FULL_IMAGES}/i/{SITE_NAME}/site_preview.webp?x=2" else: - return f"{SITE_FULL_IMAGES}/i/default_thumb_link.webp?x=1" + return f"{SITE_FULL_IMAGES}/i/default_thumb_link.webp?x=2" @property @lazy diff --git a/files/classes/user.py b/files/classes/user.py index 6008d18b1..ad0bb841f 100644 --- a/files/classes/user.py +++ b/files/classes/user.py @@ -530,7 +530,7 @@ class User(Base): def bio_html_eager(self): if self.bio_html == None: return '' return self.bio_html.replace('data-src', 'src') \ - .replace('src="/i/loading.webp?x=1"', '') \ + .replace('src="/i/loading.webp?x=2"', '') \ .replace('src="/i/loading.webp"', '') \ .replace('src="/i/l.webp"', '') @@ -797,7 +797,7 @@ class User(Base): def banner_url(self): if FEATURES['USERS_PROFILE_BANNER'] and self.bannerurl and self.can_see_my_shit: return self.bannerurl - return f"{SITE_FULL_IMAGES}/i/{SITE_NAME}/site_preview.webp?x=1" + return f"{SITE_FULL_IMAGES}/i/{SITE_NAME}/site_preview.webp?x=2" @property @lazy @@ -809,7 +809,7 @@ class User(Base): if self.profileurl and self.can_see_my_shit: if self.profileurl.startswith('/'): return SITE_FULL + self.profileurl return self.profileurl - return f"{SITE_FULL_IMAGES}/i/default-profile-pic.webp?x=1" + return f"{SITE_FULL_IMAGES}/i/default-profile-pic.webp?x=2" @lazy def real_post_count(self, v): diff --git a/files/helpers/alerts.py b/files/helpers/alerts.py index e5215a810..3610510b0 100644 --- a/files/helpers/alerts.py +++ b/files/helpers/alerts.py @@ -220,7 +220,7 @@ def _push_notif_thread(subscriptions, title, body, url): "title": title, "body": body, 'url': url, - 'icon': f'{SITE_FULL}/icon.webp?x=1', + 'icon': f'{SITE_FULL}/icon.webp?x=2', }), vapid_private_key=VAPID_PRIVATE_KEY, vapid_claims={"sub": f"mailto:{EMAIL}"} diff --git a/files/routes/jinja2.py b/files/routes/jinja2.py index 45f40882d..d36a382f1 100644 --- a/files/routes/jinja2.py +++ b/files/routes/jinja2.py @@ -40,7 +40,7 @@ def template_asset(ctx, asset_path): @app.template_filter("asset_siteimg") def template_asset_siteimg(asset_path): # TODO: Add hashing for these using files.helpers.assetcache - return f'{SITE_FULL_IMAGES}/i/{SITE_NAME}/{asset_path}?x=1' + return f'{SITE_FULL_IMAGES}/i/{SITE_NAME}/{asset_path}?x=2' @app.template_filter("timestamp") def timestamp(timestamp): diff --git a/files/templates/admin/patrons.html b/files/templates/admin/patrons.html index 3fc91ad9f..7b15d45b5 100644 --- a/files/templates/admin/patrons.html +++ b/files/templates/admin/patrons.html @@ -14,7 +14,7 @@ {{loop.index}} {% include "user_in_table.html" %} - 2{{user.patron}} + 2{{user.patron}} {% endfor %} diff --git a/files/templates/casino/game_screen.html b/files/templates/casino/game_screen.html index 339a6646c..099d0415a 100644 --- a/files/templates/casino/game_screen.html +++ b/files/templates/casino/game_screen.html @@ -43,7 +43,7 @@ {{v.coins}} @@ -53,7 +53,7 @@ {{v.marseybux}} diff --git a/files/templates/casino/roulette_screen.html b/files/templates/casino/roulette_screen.html index ad8e72e1e..abcede86c 100644 --- a/files/templates/casino/roulette_screen.html +++ b/files/templates/casino/roulette_screen.html @@ -26,10 +26,10 @@ Bets

diff --git a/files/templates/casino/slots_screen.html b/files/templates/casino/slots_screen.html index 44c0b9af5..4a8e8ce37 100644 --- a/files/templates/casino/slots_screen.html +++ b/files/templates/casino/slots_screen.html @@ -9,13 +9,13 @@
- coin + coin
- coin + coin
- coin + coin
{% endblock %} diff --git a/files/templates/comments.html b/files/templates/comments.html index f4fd137ce..59847a2eb 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -159,11 +159,11 @@ đź‘» {% else %} {% if FEATURES['PATRON_ICONS'] and c.author.patron %} - {{c.author.patron_tooltip}} + {{c.author.patron_tooltip}} {% endif %} {% if FEATURES['HOUSES'] and c.author.house %} - House {{c.author.house}} + House {{c.author.house}} {% endif %} {% if c.author.verified %} @@ -173,7 +173,7 @@
{% if c.author.hat_active(v)[0] -%} - + {%- endif %}
{{c.author_name}} diff --git a/files/templates/errors/WPD/404.html b/files/templates/errors/WPD/404.html index 658841238..0e8b6a6b9 100644 --- a/files/templates/errors/WPD/404.html +++ b/files/templates/errors/WPD/404.html @@ -3,15 +3,15 @@ - - + + - + - + Not Found - WPD @@ -20,57 +20,57 @@ - - - + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - site banner + + site banner