diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-01-18 13:10:08 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-01-18 13:10:08 -0600 |
commit | 302acaccb63202a5daf6166a0c046920afa0c759 (patch) | |
tree | f4458f6c6cdaf72b2df66bcfa2223b2758874c17 /src/view/com/post/Post.tsx | |
parent | 6a01e0529b0848ac41eab27c9ca0c07c2482dc22 (diff) | |
download | voidsky-302acaccb63202a5daf6166a0c046920afa0c759.tar.zst |
Remove all links from post meta to ensure taps are more consistent
Diffstat (limited to 'src/view/com/post/Post.tsx')
-rw-r--r-- | src/view/com/post/Post.tsx | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/src/view/com/post/Post.tsx b/src/view/com/post/Post.tsx index 7e0a87050..90d89ea7b 100644 --- a/src/view/com/post/Post.tsx +++ b/src/view/com/post/Post.tsx @@ -86,11 +86,9 @@ export const Post = observer(function Post({ const authorHref = `/profile/${item.post.author.handle}` const authorTitle = item.post.author.handle let replyAuthorDid = '' - let replyHref = '' if (record.reply) { const urip = new AtUri(record.reply.parent?.uri || record.reply.root.uri) replyAuthorDid = urip.hostname - replyHref = `/profile/${urip.hostname}/post/${urip.rkey}` } const onPressReply = () => { store.shell.openComposer({ @@ -153,12 +151,11 @@ export const Post = observer(function Post({ </View> <View style={styles.layoutContent}> <PostMeta - authorHref={authorHref} authorHandle={item.post.author.handle} authorDisplayName={item.post.author.displayName} timestamp={item.post.indexedAt} /> - {replyHref !== '' && ( + {replyAuthorDid !== '' && ( <View style={[s.flexRow, s.mb2, {alignItems: 'center'}]}> <FontAwesomeIcon icon="reply" @@ -168,14 +165,12 @@ export const Post = observer(function Post({ <Text type="sm" style={[pal.textLight, s.mr2]}> Reply to </Text> - <Link href={replyHref} title="Parent post"> - <UserInfoText - type="sm" - did={replyAuthorDid} - attr="displayName" - style={[pal.textLight]} - /> - </Link> + <UserInfoText + type="sm" + did={replyAuthorDid} + attr="displayName" + style={[pal.textLight]} + /> </View> )} {item.post.author.viewer?.muted ? ( |