Always fallback from displayName to handle
parent
12ac6fe52e
commit
fb3ca42646
|
@ -93,7 +93,7 @@ const RepostedByItem = ({item}: {item: RepostedByViewItemModel}) => {
|
|||
/>
|
||||
</View>
|
||||
<View style={styles.layoutContent}>
|
||||
<Text style={[s.f15, s.bold]}>{item.displayName}</Text>
|
||||
<Text style={[s.f15, s.bold]}>{item.displayName || item.handle}</Text>
|
||||
<Text style={[s.f14, s.gray5]}>@{item.handle}</Text>
|
||||
</View>
|
||||
</View>
|
||||
|
|
|
@ -93,7 +93,9 @@ export const PostThreadItem = observer(function PostThreadItem({
|
|||
style={styles.metaItem}
|
||||
href={authorHref}
|
||||
title={authorTitle}>
|
||||
<Text style={[s.f16, s.bold]}>{item.author.displayName}</Text>
|
||||
<Text style={[s.f16, s.bold]}>
|
||||
{item.author.displayName || item.author.handle}
|
||||
</Text>
|
||||
</Link>
|
||||
<Text style={[styles.metaItem, s.f15, s.gray5]}>
|
||||
· {ago(item.indexedAt)}
|
||||
|
@ -243,7 +245,9 @@ export const PostThreadItem = observer(function PostThreadItem({
|
|||
style={styles.metaItem}
|
||||
href={authorHref}
|
||||
title={authorTitle}>
|
||||
<Text style={[s.f17, s.bold]}>{item.author.displayName}</Text>
|
||||
<Text style={[s.f17, s.bold]}>
|
||||
{item.author.displayName || item.author.handle}
|
||||
</Text>
|
||||
</Link>
|
||||
<Link
|
||||
style={styles.metaItem}
|
||||
|
|
|
@ -86,7 +86,9 @@ const LikedByItem = ({item}: {item: VotesViewItemModel}) => {
|
|||
/>
|
||||
</View>
|
||||
<View style={styles.layoutContent}>
|
||||
<Text style={[s.f15, s.bold]}>{item.actor.displayName}</Text>
|
||||
<Text style={[s.f15, s.bold]}>
|
||||
{item.actor.displayName || item.actor.handle}
|
||||
</Text>
|
||||
<Text style={[s.f14, s.gray5]}>@{item.actor.handle}</Text>
|
||||
</View>
|
||||
</View>
|
||||
|
|
|
@ -102,7 +102,9 @@ export const Post = observer(function Post({uri}: {uri: string}) {
|
|||
<View style={styles.layoutContent}>
|
||||
<View style={styles.meta}>
|
||||
<Link style={styles.metaItem} href={authorHref} title={authorTitle}>
|
||||
<Text style={[s.f16, s.bold]}>{item.author.displayName}</Text>
|
||||
<Text style={[s.f16, s.bold]}>
|
||||
{item.author.displayName || item.author.handle}
|
||||
</Text>
|
||||
</Link>
|
||||
<Link style={styles.metaItem} href={authorHref} title={authorTitle}>
|
||||
<Text style={[s.f15, s.gray5]}>@{item.author.handle}</Text>
|
||||
|
|
|
@ -106,7 +106,9 @@ export const FeedItem = observer(function FeedItem({
|
|||
style={styles.metaItem}
|
||||
href={authorHref}
|
||||
title={item.author.handle}>
|
||||
<Text style={[s.f17, s.bold]}>{item.author.displayName}</Text>
|
||||
<Text style={[s.f17, s.bold]}>
|
||||
{item.author.displayName || item.author.handle}
|
||||
</Text>
|
||||
</Link>
|
||||
<Link
|
||||
style={styles.metaItem}
|
||||
|
|
|
@ -84,7 +84,7 @@ const User = ({item}: {item: FollowerItem}) => {
|
|||
/>
|
||||
</View>
|
||||
<View style={styles.layoutContent}>
|
||||
<Text style={[s.f15, s.bold]}>{item.displayName}</Text>
|
||||
<Text style={[s.f15, s.bold]}>{item.displayName || item.handle}</Text>
|
||||
<Text style={[s.f14, s.gray5]}>@{item.handle}</Text>
|
||||
</View>
|
||||
</View>
|
||||
|
|
|
@ -84,7 +84,7 @@ const User = ({item}: {item: FollowItem}) => {
|
|||
/>
|
||||
</View>
|
||||
<View style={styles.layoutContent}>
|
||||
<Text style={[s.f15, s.bold]}>{item.displayName}</Text>
|
||||
<Text style={[s.f15, s.bold]}>{item.displayName || item.handle}</Text>
|
||||
<Text style={[s.f14, s.gray5]}>@{item.handle}</Text>
|
||||
</View>
|
||||
</View>
|
||||
|
|
Loading…
Reference in New Issue