remove badges from popovers

master
Aevann1 2022-11-08 15:58:34 +02:00
parent 17ebb4363a
commit 39297b7c22
3 changed files with 0 additions and 17 deletions

View File

@ -36,17 +36,6 @@ function popclick(e) {
let popover = document.getElementsByClassName("popover")
popover = popover[popover.length-1]
if (popover.getElementsByClassName('pop-badges').length > 0) {
const badgesDOM = popover.getElementsByClassName('pop-badges')[0];
badgesDOM.innerHTML = "";
for (const badge of author["badges"]) {
const badgeDOM = popClickBadgeTemplateDOM.cloneNode();
badgeDOM.src = badge + "?b=4";
badgesDOM.append(badgeDOM);
}
}
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=7"

View File

@ -796,7 +796,6 @@ class User(Base):
'coins': self.coins,
'post_count': 0 if self.shadowbanned and not (v and v.can_see_shadowbanned) else self.post_count,
'comment_count': 0 if self.shadowbanned and not (v and v.can_see_shadowbanned) else self.comment_count,
'badges': [x.path for x in self.badges],
}
return data

View File

@ -17,11 +17,6 @@
</div>
{%- endif %}
{% if FEATURES['BADGES'] -%}
<div class="pop-badges ml-3 mr-3 my-2">
</div>
{%- endif %}
<div class="border-top d-flex align-items-center p-3 gap-3 smol">
<span>
<strong class="pop-postcount text-black"></strong>