[Glitch] Emoji: Statuses

Port 0c1ca6c969 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Echo
2025-10-08 16:18:11 +02:00
committed by Claire
parent c4ef050eb6
commit c08a874ba9
14 changed files with 128 additions and 85 deletions

View File

@@ -1,5 +1,6 @@
import { FormattedMessage } from 'react-intl';
import { EmojiHTML } from '@/flavours/glitch/components/emoji/html';
import { Avatar } from 'flavours/glitch/components/avatar';
import { DisplayName } from 'flavours/glitch/components/display_name';
import { FollowButton } from 'flavours/glitch/components/follow_button';
@@ -42,9 +43,10 @@ export const AccountCard: React.FC<{ accountId: string }> = ({ accountId }) => {
</Permalink>
{account.get('note').length > 0 && (
<div
className='account-card__bio translate animate-parent'
dangerouslySetInnerHTML={{ __html: account.get('note_emojified') }}
<EmojiHTML
className='account-card__bio translate'
htmlString={account.get('note_emojified')}
extraEmojis={account.get('emojis')}
/>
)}