diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-04-07 11:09:25 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-07 11:09:25 -0500 |
commit | ab11f206d8a14443d68408f237fd99dd33752185 (patch) | |
tree | f132c1bbd1ff540f2fac6b53398c6128a63468d0 /src/view/com/post-thread/PostThreadItem.tsx | |
parent | 4b9899225790b76b8ff525bf8fffc8cc0c831af7 (diff) | |
download | voidsky-ab11f206d8a14443d68408f237fd99dd33752185.tar.zst |
Diffstat (limited to 'src/view/com/post-thread/PostThreadItem.tsx')
-rw-r--r-- | src/view/com/post-thread/PostThreadItem.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx index b23bebe0a..3d3647f60 100644 --- a/src/view/com/post-thread/PostThreadItem.tsx +++ b/src/view/com/post-thread/PostThreadItem.tsx @@ -16,6 +16,7 @@ import * as Toast from '../util/Toast' import {UserAvatar} from '../util/UserAvatar' import {s} from 'lib/styles' import {ago} from 'lib/strings/time' +import {sanitizeDisplayName} from 'lib/strings/display-names' import {pluralize} from 'lib/strings/helpers' import {useStores} from 'state/index' import {PostMeta} from '../util/PostMeta' @@ -151,7 +152,9 @@ export const PostThreadItem = observer(function PostThreadItem({ style={[pal.text]} numberOfLines={1} lineHeight={1.2}> - {item.post.author.displayName || item.post.author.handle} + {sanitizeDisplayName( + item.post.author.displayName || item.post.author.handle, + )} </Text> </Link> <Text type="md" style={[styles.metaItem, pal.textLight]}> |