forked from MarseyWorld/MarseyWorld
remove badges from popovers
parent
17ebb4363a
commit
39297b7c22
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue