Fix title of group timeline

This commit is contained in:
noellabo 2020-07-16 07:33:28 +09:00
parent d9649ad1f7
commit 23732db79f

View file

@ -165,7 +165,8 @@ class GroupTimeline extends React.PureComponent {
</button>
);
const title = account.get('username', intl.formatMessage(messages.title))
const displayName = account.get('display_name')
const title = displayName.length === 0 ? account.get('acct').split('@')[0] : displayName
const groupDetail = (
<div className={collapsibleClassName} tabIndex={collapsed ? -1 : null} onTransitionEnd={this.handleTransitionEnd}>