Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

+16 -35
-1
src/view/com/post-thread/PostThreadItem.tsx
··· 284 284 </View> 285 285 <View style={styles.layoutContent}> 286 286 <PostMeta 287 - authorHref={authorHref} 288 287 authorHandle={item.post.author.handle} 289 288 authorDisplayName={item.post.author.displayName} 290 289 timestamp={item.post.indexedAt}
+7 -12
src/view/com/post/Post.tsx
··· 86 86 const authorHref = `/profile/${item.post.author.handle}` 87 87 const authorTitle = item.post.author.handle 88 88 let replyAuthorDid = '' 89 - let replyHref = '' 90 89 if (record.reply) { 91 90 const urip = new AtUri(record.reply.parent?.uri || record.reply.root.uri) 92 91 replyAuthorDid = urip.hostname 93 - replyHref = `/profile/${urip.hostname}/post/${urip.rkey}` 94 92 } 95 93 const onPressReply = () => { 96 94 store.shell.openComposer({ ··· 153 151 </View> 154 152 <View style={styles.layoutContent}> 155 153 <PostMeta 156 - authorHref={authorHref} 157 154 authorHandle={item.post.author.handle} 158 155 authorDisplayName={item.post.author.displayName} 159 156 timestamp={item.post.indexedAt} 160 157 /> 161 - {replyHref !== '' && ( 158 + {replyAuthorDid !== '' && ( 162 159 <View style={[s.flexRow, s.mb2, {alignItems: 'center'}]}> 163 160 <FontAwesomeIcon 164 161 icon="reply" ··· 168 165 <Text type="sm" style={[pal.textLight, s.mr2]}> 169 166 Reply to 170 167 </Text> 171 - <Link href={replyHref} title="Parent post"> 172 - <UserInfoText 173 - type="sm" 174 - did={replyAuthorDid} 175 - attr="displayName" 176 - style={[pal.textLight]} 177 - /> 178 - </Link> 168 + <UserInfoText 169 + type="sm" 170 + did={replyAuthorDid} 171 + attr="displayName" 172 + style={[pal.textLight]} 173 + /> 179 174 </View> 180 175 )} 181 176 {item.post.author.viewer?.muted ? (
+7 -15
src/view/com/posts/FeedItem.tsx
··· 44 44 const urip = new AtUri(record.reply.parent?.uri || record.reply.root.uri) 45 45 return urip.hostname 46 46 }, [record?.reply]) 47 - const replyHref = useMemo(() => { 48 - if (!record?.reply) return '' 49 - const urip = new AtUri(record?.reply.parent?.uri || record?.reply.root.uri) 50 - return `/profile/${urip.hostname}/post/${urip.rkey}` 51 - }, [record?.reply]) 52 47 53 48 const onPressReply = () => { 54 49 store.shell.openComposer({ ··· 162 157 </View> 163 158 <View style={styles.layoutContent}> 164 159 <PostMeta 165 - authorHref={authorHref} 166 160 authorHandle={item.post.author.handle} 167 161 authorDisplayName={item.post.author.displayName} 168 162 timestamp={item.post.indexedAt} 169 163 /> 170 - {!isChild && replyHref !== '' && ( 164 + {!isChild && replyAuthorDid !== '' && ( 171 165 <View style={[s.flexRow, s.mb2, {alignItems: 'center'}]}> 172 166 <FontAwesomeIcon 173 167 icon="reply" ··· 177 171 <Text type="md" style={[pal.textLight, s.mr2]}> 178 172 Reply to 179 173 </Text> 180 - <Link href={replyHref} title="Parent post"> 181 - <UserInfoText 182 - type="md" 183 - did={replyAuthorDid} 184 - attr="displayName" 185 - style={[pal.textLight, s.ml2]} 186 - /> 187 - </Link> 174 + <UserInfoText 175 + type="md" 176 + did={replyAuthorDid} 177 + attr="displayName" 178 + style={[pal.textLight, s.ml2]} 179 + /> 188 180 </View> 189 181 )} 190 182 {item.post.author.viewer?.muted &&
+2 -7
src/view/com/util/PostMeta.tsx
··· 1 1 import React from 'react' 2 2 import {Platform, StyleSheet, View} from 'react-native' 3 - import {Link} from '../util/Link' 4 3 import {Text} from './text/Text' 5 4 import {ago} from '../../../lib/strings' 6 5 import {usePalette} from '../../lib/hooks/usePalette' 7 6 8 7 interface PostMetaOpts { 9 - authorHref: string 10 8 authorHandle: string 11 9 authorDisplayName: string | undefined 12 10 timestamp: string ··· 36 34 37 35 return ( 38 36 <View style={styles.meta}> 39 - <Link 40 - style={[styles.metaItem, styles.maxWidth]} 41 - href={opts.authorHref} 42 - title={opts.authorHandle}> 37 + <View style={[styles.metaItem, styles.maxWidth]}> 43 38 <Text type="lg-bold" style={[pal.text]} numberOfLines={1}> 44 39 {displayName} 45 40 {handle ? ( ··· 48 43 </Text> 49 44 ) : undefined} 50 45 </Text> 51 - </Link> 46 + </View> 52 47 <Text type="md" style={[styles.metaItem, pal.textLight]}> 53 48 &middot; {ago(opts.timestamp)} 54 49 </Text>