diff options
Diffstat (limited to 'src/view/com/post-thread')
-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 |
3 files changed, 10 insertions, 4 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> |