diff options
-rw-r--r-- | src/view/com/post-thread/PostRepostedBy.tsx | 2 | ||||
-rw-r--r-- | src/view/com/post-thread/PostThreadItem.tsx | 8 | ||||
-rw-r--r-- | src/view/com/post-thread/PostVotedBy.tsx | 4 | ||||
-rw-r--r-- | src/view/com/post/Post.tsx | 4 | ||||
-rw-r--r-- | src/view/com/posts/FeedItem.tsx | 4 | ||||
-rw-r--r-- | src/view/com/profile/ProfileFollowers.tsx | 2 | ||||
-rw-r--r-- | src/view/com/profile/ProfileFollows.tsx | 2 |
7 files changed, 18 insertions, 8 deletions
diff --git a/src/view/com/post-thread/PostRepostedBy.tsx b/src/view/com/post-thread/PostRepostedBy.tsx index adb20a7f7..53f0e0b35 100644 --- a/src/view/com/post-thread/PostRepostedBy.tsx +++ b/src/view/com/post-thread/PostRepostedBy.tsx @@ -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> diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx index a4b628101..4dd6f33e1 100644 --- a/src/view/com/post-thread/PostThreadItem.tsx +++ b/src/view/com/post-thread/PostThreadItem.tsx @@ -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} diff --git a/src/view/com/post-thread/PostVotedBy.tsx b/src/view/com/post-thread/PostVotedBy.tsx index f5b01f0db..596a6a1db 100644 --- a/src/view/com/post-thread/PostVotedBy.tsx +++ b/src/view/com/post-thread/PostVotedBy.tsx @@ -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> diff --git a/src/view/com/post/Post.tsx b/src/view/com/post/Post.tsx index 4a1e67b63..22bdd27ab 100644 --- a/src/view/com/post/Post.tsx +++ b/src/view/com/post/Post.tsx @@ -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> diff --git a/src/view/com/posts/FeedItem.tsx b/src/view/com/posts/FeedItem.tsx index 2f66bd51b..fbcb979ab 100644 --- a/src/view/com/posts/FeedItem.tsx +++ b/src/view/com/posts/FeedItem.tsx @@ -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} diff --git a/src/view/com/profile/ProfileFollowers.tsx b/src/view/com/profile/ProfileFollowers.tsx index 39affd9e0..65297ccc6 100644 --- a/src/view/com/profile/ProfileFollowers.tsx +++ b/src/view/com/profile/ProfileFollowers.tsx @@ -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> diff --git a/src/view/com/profile/ProfileFollows.tsx b/src/view/com/profile/ProfileFollows.tsx index d0619ba77..1bdd18f66 100644 --- a/src/view/com/profile/ProfileFollows.tsx +++ b/src/view/com/profile/ProfileFollows.tsx @@ -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> |