From 336dc91a896b028fd4159766b2ca8e374a254b61 Mon Sep 17 00:00:00 2001 From: luna Date: Fri, 3 Jan 2025 12:38:30 +1030 Subject: [PATCH] fix: text in embeds not being formatted --- src/components/PostEmbed/app-bsky-embed-record-view.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/PostEmbed/app-bsky-embed-record-view.tsx b/src/components/PostEmbed/app-bsky-embed-record-view.tsx index d43da23..9bed67d 100644 --- a/src/components/PostEmbed/app-bsky-embed-record-view.tsx +++ b/src/components/PostEmbed/app-bsky-embed-record-view.tsx @@ -10,6 +10,7 @@ import { NotImplementedBox } from '@/components/ui/NotImplementedBox'; import { Link } from '@/components/ui/Link'; import { useTranslation } from 'react-i18next'; import { Avatar } from '../ui/avatar'; +import { FormattedText } from '../ui/FormattedText'; export const AppBskyEmbedRecordView = ({ embed }: { embed: BSkyPostEmbed }) => { const { t } = useTranslation('post'); @@ -29,7 +30,7 @@ export const AppBskyEmbedRecordView = ({ embed }: { embed: BSkyPostEmbed }) => { } return ( -
+
{embed.record.$type === 'app.bsky.embed.record#viewRecord' && (
{author.avatar && } @@ -66,7 +67,7 @@ export const AppBskyEmbedRecordView = ({ embed }: { embed: BSkyPostEmbed }) => { {embed.record.facets ? ( ) : ( - embed.record.value.text + )}

)}