From 3eddb8f3915506343120a26796ac653ce1a81a28 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 5 Sep 2022 06:36:31 +0200 Subject: [PATCH] more hat shit --- files/assets/js/chat.js | 2 +- files/assets/js/comments+submission_listing.js | 2 +- files/templates/hats.html | 2 +- files/templates/voters.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/files/assets/js/chat.js b/files/assets/js/chat.js index f133ce59c..45915e89e 100644 --- a/files/assets/js/chat.js +++ b/files/assets/js/chat.js @@ -80,7 +80,7 @@ socket.on('speak', function(json) { document.getElementsByClassName('userlink')[0].classList.remove('d-none') 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']} + '?v=3' + if (json['hat']) document.getElementsByClassName('avatar-hat')[0].src = json['hat']} + "?v=3" document.getElementsByClassName('userlink')[0].href = '/@' + json['username'] document.getElementsByClassName('userlink')[0].style.color = '#' + json['namecolor'] document.getElementsByClassName('time')[0].classList.remove('d-none') diff --git a/files/assets/js/comments+submission_listing.js b/files/assets/js/comments+submission_listing.js index 7586038ea..10d78a63d 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'] + '?v=3' + if (author["hat"]) popover.getElementsByClassName('pop-hat')[0].src = author['hat'] + "?v=3" 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/hats.html b/files/templates/hats.html index 6184e5867..e56222004 100644 --- a/files/templates/hats.html +++ b/files/templates/hats.html @@ -55,7 +55,7 @@ {% for hat, user in hats %} - {{hat.name}} + {{hat.name}} {{hat.name}} {{hat.censored_description(v)}} {% if SITE == 'rdrama.net' %} diff --git a/files/templates/voters.html b/files/templates/voters.html index 3afd2ed7e..639ba5dbf 100644 --- a/files/templates/voters.html +++ b/files/templates/voters.html @@ -20,7 +20,7 @@ {{loop.index}} {% include "user_in_table.html" %} - {{num}} + {{num}} {% endfor %} {% if pos and (pos[0] > 25 or not pos[1]) %}