render emoji in profile bios

This commit is contained in:
ari melody 2025-07-14 04:43:37 +01:00
parent a5a066be3d
commit fe9d216552
Signed by: ari
GPG key ID: CF99829C92678188
2 changed files with 2 additions and 1 deletions

View file

@ -53,6 +53,7 @@ export function parseAccount(data) {
});
account.rich_name = account.nickname ? renderEmoji(account.nickname, account.emojis) : account.username;
account.rich_bio = renderEmoji(account.bio, account.emojis);
cache.update(cache => {
cache[account.id] = account;

View file

@ -156,7 +156,7 @@
</div>
</header>
<div class="profile-info">
<p class="profile-bio">{@html profile.bio}</p>
<p class="profile-bio">{@html profile.rich_bio}</p>
<ul class="profile-counts">
<li><b>{lang.string('profile.followers')}</b> {profile.followers_count}</li>
<li><b>{lang.string('profile.following')}</b> {profile.following_count}</li>