updated missing avatars to be a webfont display

This commit is contained in:
RossAscends
2023-04-14 03:27:49 +09:00
parent e7a937eb0a
commit 5ff4d34753
3 changed files with 9 additions and 5 deletions

View File

@ -961,7 +961,9 @@ function addOneMessage(mes, type = "normal", insertAfter = null) {
}
newMessage.find('.avatar img').on('error', function () {
$(this).attr("src", "/img/user-slash-solid.svg");
/* $(this).attr("src", "/img/user-slash-solid.svg"); */
$(this).hide();
$(this).parent().html(`<div class="missing-avatar fa-solid fa-user-slash"></div>`);
});
if (type === 'swipe') {