mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-19 07:57:00 +00:00
Use sender's username
to column title in notification request if it's display_name
is not set (#29575)
This commit is contained in:
parent
a32a126cac
commit
3156d04ec1
|
@ -88,7 +88,7 @@ export const NotificationRequest = ({ multiColumn, params: { id } }) => {
|
||||||
}
|
}
|
||||||
}, [dispatch, accountId]);
|
}, [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 (
|
return (
|
||||||
<Column bindToDocument={!multiColumn} ref={columnRef} label={columnTitle}>
|
<Column bindToDocument={!multiColumn} ref={columnRef} label={columnTitle}>
|
||||||
|
|
Loading…
Reference in a new issue