diff options
author | Eric Bailey <git@esb.lol> | 2024-06-24 19:06:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-24 19:06:04 -0500 |
commit | 340c2c5eaf4666bd064f69d3520e7bc2b6cfa8c2 (patch) | |
tree | 2d3580dc47a740716e9179743efaf755dd82c8c7 | |
parent | 795fe7455b77c01fe6d9274c172e3e9c9ec1464e (diff) | |
download | voidsky-340c2c5eaf4666bd064f69d3520e7bc2b6cfa8c2.tar.zst |
Resolve facets in feed description on feed lander (#4628)
-rw-r--r-- | src/view/screens/ProfileFeed.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/view/screens/ProfileFeed.tsx b/src/view/screens/ProfileFeed.tsx index 30f8dbebe..17d1214b2 100644 --- a/src/view/screens/ProfileFeed.tsx +++ b/src/view/screens/ProfileFeed.tsx @@ -53,6 +53,7 @@ import * as Toast from 'view/com/util/Toast' import {CenteredView} from 'view/com/util/Views' import {atoms as a, useTheme} from '#/alf' import {Button as NewButton, ButtonText} from '#/components/Button' +import {useRichText} from '#/components/hooks/useRichText' import {ArrowOutOfBox_Stroke2_Corner0_Rounded as Share} from '#/components/icons/ArrowOutOfBox' import {CircleInfo_Stroke2_Corner0_Rounded as CircleInfo} from '#/components/icons/CircleInfo' import { @@ -518,6 +519,7 @@ function AboutSection({ const {mutateAsync: likeFeed, isPending: isLikePending} = useLikeMutation() const {mutateAsync: unlikeFeed, isPending: isUnlikePending} = useUnlikeMutation() + const [resolvedRT] = useRichText(feedInfo.description.text || '') const isLiked = !!likeUri const likeCount = @@ -553,7 +555,7 @@ function AboutSection({ <RichText testID="listDescription" style={[a.text_md]} - value={feedInfo.description} + value={resolvedRT ?? feedInfo.description} /> ) : ( <Text type="lg" style={[{fontStyle: 'italic'}, pal.textLight]}> |