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/posts/FeedItem.tsx | |
parent | 4b9899225790b76b8ff525bf8fffc8cc0c831af7 (diff) | |
download | voidsky-ab11f206d8a14443d68408f237fd99dd33752185.tar.zst |
Diffstat (limited to 'src/view/com/posts/FeedItem.tsx')
-rw-r--r-- | src/view/com/posts/FeedItem.tsx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/view/com/posts/FeedItem.tsx b/src/view/com/posts/FeedItem.tsx index 5ec0c43a8..569d11257 100644 --- a/src/view/com/posts/FeedItem.tsx +++ b/src/view/com/posts/FeedItem.tsx @@ -22,6 +22,7 @@ import {s} from 'lib/styles' import {useStores} from 'state/index' import {usePalette} from 'lib/hooks/usePalette' import {useAnalytics} from 'lib/analytics' +import {sanitizeDisplayName} from 'lib/strings/display-names' export const FeedItem = observer(function ({ item, @@ -151,9 +152,9 @@ export const FeedItem = observer(function ({ <Link style={styles.includeReason} href={`/profile/${item.reasonRepost.by.handle}`} - title={ - item.reasonRepost.by.displayName || item.reasonRepost.by.handle - }> + title={sanitizeDisplayName( + item.reasonRepost.by.displayName || item.reasonRepost.by.handle, + )}> <FontAwesomeIcon icon="retweet" style={[ @@ -172,10 +173,10 @@ export const FeedItem = observer(function ({ style={pal.textLight} lineHeight={1.2} numberOfLines={1} - text={ + text={sanitizeDisplayName( item.reasonRepost.by.displayName || - item.reasonRepost.by.handle - } + item.reasonRepost.by.handle, + )} href={`/profile/${item.reasonRepost.by.handle}`} /> </Text> |