diff options
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> |