Remove all links from post meta to ensure taps are more consistent

This commit is contained in:
Paul Frazee 2023-01-18 13:10:08 -06:00
parent 6a01e0529b
commit 302acaccb6
4 changed files with 16 additions and 35 deletions

View file

@ -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 ? (