From 5783f0088846653d0d80b4425d4ea73d1a09d352 Mon Sep 17 00:00:00 2001 From: Sterling Archer Date: Sun, 28 Jun 2026 20:00:16 -0700 Subject: [PATCH] Fix emoji avatar in friend profile modal --- index.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 2c48b0c..82f7730 100644 --- a/index.html +++ b/index.html @@ -1195,8 +1195,13 @@ window.openFriendProfile = async function(uid) { const displayName = profile.displayName || 'No Display Name'; const avatarEl = document.getElementById('fp-avatar'); - if (profile.avatarUrl) avatarEl.innerHTML = ``; - else avatarEl.textContent = (nick || displayName)[0].toUpperCase(); + if (profile.avatarUrl && isEmoji(profile.avatarUrl)) { + avatarEl.innerHTML = `${profile.avatarUrl}`; + } else if (profile.avatarUrl) { + avatarEl.innerHTML = ``; + } else { + avatarEl.textContent = (nick || displayName)[0].toUpperCase(); + } document.getElementById('fp-name-text').textContent = nick || displayName;