tweak link handling (#7857)

This commit is contained in:
Hailey
2025-02-27 13:18:30 -08:00
committed by GitHub
parent a3d36393a1
commit a2b71e3a4b
8 changed files with 43 additions and 2 deletions
@@ -375,6 +375,7 @@ let PostThreadItemLoaded = ({
value={richText}
style={[a.flex_1, a.text_xl]}
authorHandle={post.author.handle}
shouldProxyLinks={true}
/>
) : undefined}
{post.embed && (
@@ -590,6 +591,7 @@ let PostThreadItemLoaded = ({
style={[a.flex_1, a.text_md]}
numberOfLines={limitLines ? MAX_POST_LINES : undefined}
authorHandle={post.author.handle}
shouldProxyLinks={true}
/>
</View>
) : undefined}
+1
View File
@@ -234,6 +234,7 @@ function PostInner({
numberOfLines={limitLines ? MAX_POST_LINES : undefined}
style={[a.flex_1, a.text_md]}
authorHandle={post.author.handle}
shouldProxyLinks={true}
/>
</View>
) : undefined}
+1
View File
@@ -506,6 +506,7 @@ let PostContent = ({
numberOfLines={limitLines ? MAX_POST_LINES : undefined}
style={[a.flex_1, a.text_md]}
authorHandle={postAuthor.handle}
shouldProxyLinks={true}
/>
</View>
) : undefined}
@@ -70,6 +70,7 @@ export const ExternalLinkEmbed = ({
<Link
label={link.title || _(msg`Open link to ${niceUrl}`)}
to={link.uri}
shouldProxy={true}
onPress={onOpen}
onLongPress={onShareExternal}>
{({hovered}) => (