diff --git a/src/components/RichText.tsx b/src/components/RichText.tsx
index 83498846b4..1a14415cf8 100644
--- a/src/components/RichText.tsx
+++ b/src/components/RichText.tsx
@@ -78,31 +78,40 @@ export function RichText({
const link = segment.link
const mention = segment.mention
const tag = segment.tag
- if (mention && AppBskyRichtextFacet.validateMention(mention).success) {
+ if (
+ mention &&
+ AppBskyRichtextFacet.validateMention(mention).success &&
+ !disableLinks
+ ) {
els.push(
{segment.text}
,
)
} else if (link && AppBskyRichtextFacet.validateLink(link).success) {
- els.push(
-
- {toShortUrl(segment.text)}
- ,
- )
+ if (disableLinks) {
+ els.push(toShortUrl(segment.text))
+ } else {
+ els.push(
+
+ {toShortUrl(segment.text)}
+ ,
+ )
+ }
} else if (
+ !disableLinks &&
enableTags &&
tag &&
AppBskyRichtextFacet.validateTag(tag).success
@@ -115,7 +124,6 @@ export function RichText({
style={styles}
selectable={selectable}
authorHandle={authorHandle}
- disableLinks={disableLinks}
/>,
)
} else {
@@ -128,7 +136,7 @@ export function RichText({
@@ -143,13 +151,11 @@ function RichTextTag({
style,
selectable,
authorHandle,
- disableLinks,
}: {
text: string
tag: string
selectable?: boolean
authorHandle?: string
- disableLinks?: boolean
} & TextStyleProp) {
const t = useTheme()
const {_} = useLingui()
@@ -198,7 +204,7 @@ function RichTextTag({
style={[
style,
{
- pointerEvents: disableLinks ? 'none' : 'auto',
+ pointerEvents: 'auto',
color: t.palette.primary_500,
},
web({
diff --git a/src/view/com/util/post-embeds/QuoteEmbed.tsx b/src/view/com/util/post-embeds/QuoteEmbed.tsx
index 10718fe93b..35b0912698 100644
--- a/src/view/com/util/post-embeds/QuoteEmbed.tsx
+++ b/src/view/com/util/post-embeds/QuoteEmbed.tsx
@@ -91,10 +91,7 @@ export function QuoteEmbed({
const richText = React.useMemo(
() =>
quote.text.trim()
- ? new RichTextAPI({
- text: quote.text,
- facets: quote.facets,
- })
+ ? new RichTextAPI({text: quote.text, facets: quote.facets})
: undefined,
[quote.text, quote.facets],
)