From bd7c0e71bf664f76c568a868ab2ddce1979b240c Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 10 Sep 2022 11:34:48 +0200 Subject: [PATCH] forgot to cachebust --- files/assets/js/chat.js | 2 +- files/assets/js/comments+submission_listing.js | 2 +- files/templates/chat.html | 4 ++-- files/templates/comments.html | 2 +- files/templates/hats.html | 4 ++-- files/templates/header.html | 2 +- files/templates/log.html | 2 +- files/templates/notifications.html | 2 +- files/templates/submission.html | 2 +- files/templates/submission_listing.html | 2 +- files/templates/user_in_table.html | 2 +- files/templates/user_listing.html | 2 +- files/templates/userpage.html | 4 ++-- 13 files changed, 16 insertions(+), 16 deletions(-) diff --git a/files/assets/js/chat.js b/files/assets/js/chat.js index ec773543d..613642746 100644 --- a/files/assets/js/chat.js +++ b/files/assets/js/chat.js @@ -81,7 +81,7 @@ socket.on('speak', function(json) { document.getElementsByClassName('avatar')[0].classList.remove('d-none') document.getElementsByClassName('avatar-pic')[0].src = json['avatar'] if (json['hat']) - document.getElementsByClassName('avatar-hat')[0].src = json['hat'] + "?h=4" + document.getElementsByClassName('avatar-hat')[0].src = json['hat'] + "?h=5" else document.getElementsByClassName('avatar-hat')[0].removeAttribute("src") diff --git a/files/assets/js/comments+submission_listing.js b/files/assets/js/comments+submission_listing.js index cce8f84e5..bb65aed26 100644 --- a/files/assets/js/comments+submission_listing.js +++ b/files/assets/js/comments+submission_listing.js @@ -49,7 +49,7 @@ function popclick(e) { popover.getElementsByClassName('pop-banner')[0].src = author["bannerurl"] popover.getElementsByClassName('pop-picture')[0].src = author["profile_url"] - if (author["hat"]) popover.getElementsByClassName('pop-hat')[0].src = author['hat'] + "?h=4" + if (author["hat"]) popover.getElementsByClassName('pop-hat')[0].src = author['hat'] + "?h=5" popover.getElementsByClassName('pop-username')[0].innerHTML = author["username"] if (popover.getElementsByClassName('pop-bio').length > 0) { popover.getElementsByClassName('pop-bio')[0].innerHTML = author["bio_html"] diff --git a/files/templates/chat.html b/files/templates/chat.html index 1645e2859..82cea6973 100644 --- a/files/templates/chat.html +++ b/files/templates/chat.html @@ -172,7 +172,7 @@
{% if m.get('hat') -%} - + {%- endif %}
{% endif %} @@ -228,6 +228,6 @@ - + \ No newline at end of file diff --git a/files/templates/comments.html b/files/templates/comments.html index 95203f24f..7333b6087 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -169,7 +169,7 @@
{% if c.author.hat_active -%} - + {%- endif %}
{{c.author_name}} diff --git a/files/templates/hats.html b/files/templates/hats.html index c9db786ab..45768078d 100644 --- a/files/templates/hats.html +++ b/files/templates/hats.html @@ -31,7 +31,7 @@ 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?h=4` + profile_pic_hat.src = `/i/hats/${hat_name}.webp?h=5` profile_pic_hat.classList.remove('d-none') } } @@ -71,7 +71,7 @@
avatar - {{hat.name}} + {{hat.name}}
{{hat.name}} diff --git a/files/templates/header.html b/files/templates/header.html index a2350efe3..35edd2d61 100644 --- a/files/templates/header.html +++ b/files/templates/header.html @@ -207,7 +207,7 @@
{% if v.hat_active -%} - + {% elif request.path == '/hats' %} {%- endif %} diff --git a/files/templates/log.html b/files/templates/log.html index b5698963a..d99a5b83e 100644 --- a/files/templates/log.html +++ b/files/templates/log.html @@ -103,7 +103,7 @@
avatar {% if ma.user.hat_active -%} - + {%- endif %}
diff --git a/files/templates/notifications.html b/files/templates/notifications.html index 27ba85c7c..afb4a7575 100644 --- a/files/templates/notifications.html +++ b/files/templates/notifications.html @@ -78,7 +78,7 @@
avatar {% if ma.user.hat_active -%} - + {%- endif %}
diff --git a/files/templates/submission.html b/files/templates/submission.html index 24e5dc8e9..946894206 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -674,7 +674,7 @@
{% if p.author.hat_active -%} - + {%- endif %}
{{p.author_name}} diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index d0309dea6..d5f3b083c 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -172,7 +172,7 @@
{% if p.author.hat_active -%} - + {%- endif %}
{{p.author_name}} diff --git a/files/templates/user_in_table.html b/files/templates/user_in_table.html index ca70a489a..c4b8d6748 100644 --- a/files/templates/user_in_table.html +++ b/files/templates/user_in_table.html @@ -2,7 +2,7 @@
{% if user.hat_active -%} - + {%- endif %}
{{user.username}} diff --git a/files/templates/user_listing.html b/files/templates/user_listing.html index 04321a755..7d9576641 100644 --- a/files/templates/user_listing.html +++ b/files/templates/user_listing.html @@ -7,7 +7,7 @@
{% if u.hat_active -%} - + {%- endif %}
diff --git a/files/templates/userpage.html b/files/templates/userpage.html index 1b9af84d8..5717040d5 100644 --- a/files/templates/userpage.html +++ b/files/templates/userpage.html @@ -42,7 +42,7 @@ {% if u.hat_active -%} - + {%- endif %} @@ -407,7 +407,7 @@ {% if u.hat_active -%} - + {%- endif %}