forked from blisstown/campfire
render emoji in profile bios
This commit is contained in:
parent
a5a066be3d
commit
fe9d216552
2 changed files with 2 additions and 1 deletions
|
@ -53,6 +53,7 @@ export function parseAccount(data) {
|
||||||
});
|
});
|
||||||
|
|
||||||
account.rich_name = account.nickname ? renderEmoji(account.nickname, account.emojis) : account.username;
|
account.rich_name = account.nickname ? renderEmoji(account.nickname, account.emojis) : account.username;
|
||||||
|
account.rich_bio = renderEmoji(account.bio, account.emojis);
|
||||||
|
|
||||||
cache.update(cache => {
|
cache.update(cache => {
|
||||||
cache[account.id] = account;
|
cache[account.id] = account;
|
||||||
|
|
|
@ -156,7 +156,7 @@
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
<div class="profile-info">
|
<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">
|
<ul class="profile-counts">
|
||||||
<li><b>{lang.string('profile.followers')}</b> {profile.followers_count}</li>
|
<li><b>{lang.string('profile.followers')}</b> {profile.followers_count}</li>
|
||||||
<li><b>{lang.string('profile.following')}</b> {profile.following_count}</li>
|
<li><b>{lang.string('profile.following')}</b> {profile.following_count}</li>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue