From 7c4bda105bcfd3cc6b62f22696a98049cb15828c Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Wed, 25 Jan 2023 16:25:23 +0800 Subject: [PATCH] Fix profile metadata labels and values could have shortcode emojis --- src/components/account.jsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/account.jsx b/src/components/account.jsx index 7554df00..10c0b6a8 100644 --- a/src/components/account.jsx +++ b/src/components/account.jsx @@ -2,6 +2,7 @@ import './account.css'; import { useEffect, useState } from 'preact/hooks'; +import emojifyText from '../utils/emojify-text'; import enhanceContent from '../utils/enhance-content'; import handleAccountLinks from '../utils/handle-account-links'; import shortenNumber from '../utils/shorten-number'; @@ -171,12 +172,16 @@ function Account({ account }) { key={name} > - {name}{' '} + {' '} {!!verifiedAt && }