show join date on popover

remotes/1693176582716663532/tmp_refs/heads/watchparty
Aevann1 2022-11-11 17:22:10 +02:00
parent fc19b1a23e
commit 80d240a45b
3 changed files with 4 additions and 1 deletions

View File

@ -58,6 +58,7 @@ function popclick(e) {
popover.getElementsByClassName('pop-commentcount')[0].innerHTML = author["comment_count"]
popover.getElementsByClassName('pop-coins')[0].innerHTML = author["coins"]
popover.getElementsByClassName('pop-viewmore')[0].href = author["url"]
popover.getElementsByClassName('pop-created-date')[0].innerHTML = author["created_date"]
}, 5);
}

View File

@ -808,6 +808,7 @@ class User(Base):
'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],
'created_date': self.created_date,
}
return data

View File

@ -7,7 +7,8 @@
<img class="pop-hat profile-pic-75-hat hat" loading="lazy">
</div>
<div class="px-3 text-truncate">
<h5 class="pop-username text-truncate text-black"></h5>
<h5 class="pop-username text-truncate text-black mb-1"></h5>
<span class="text-black">Joined <span class="pop-created-date"></span></span>
</div>
</div>