Skip to content

Commit

Permalink
Use sender's username to column title in notification request if it…
Browse files Browse the repository at this point in the history
…'s `display_name` is not set (mastodon#29575)
  • Loading branch information
mgmn authored Mar 14, 2024
1 parent a32a126 commit 3156d04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/mastodon/features/notifications/request.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const NotificationRequest = ({ multiColumn, params: { id } }) => {
}
}, [dispatch, accountId]);

const columnTitle = intl.formatMessage(messages.title, { name: account?.get('display_name') });
const columnTitle = intl.formatMessage(messages.title, { name: account?.get('display_name') || account?.get('username') });

return (
<Column bindToDocument={!multiColumn} ref={columnRef} label={columnTitle}>
Expand Down

0 comments on commit 3156d04

Please sign in to comment.