|
|
@ -232,9 +232,18 @@ class Header extends ImmutablePureComponent {
|
|
|
|
const content = { __html: account.get('note_emojified') };
|
|
|
|
const content = { __html: account.get('note_emojified') };
|
|
|
|
const displayNameHtml = { __html: account.get('display_name_html') };
|
|
|
|
const displayNameHtml = { __html: account.get('display_name_html') };
|
|
|
|
const fields = account.get('fields');
|
|
|
|
const fields = account.get('fields');
|
|
|
|
const badge = account.get('bot') ? (<div className='account-role bot'><FormattedMessage id='account.badges.bot' defaultMessage='Bot' /></div>) : null;
|
|
|
|
|
|
|
|
const acct = account.get('acct').indexOf('@') === -1 && domain ? `${account.get('acct')}@${domain}` : account.get('acct');
|
|
|
|
const acct = account.get('acct').indexOf('@') === -1 && domain ? `${account.get('acct')}@${domain}` : account.get('acct');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let badge;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (account.get('bot')) {
|
|
|
|
|
|
|
|
badge = (<div className='account-role bot'><FormattedMessage id='account.badges.bot' defaultMessage='Bot' /></div>);
|
|
|
|
|
|
|
|
} else if (account.get('group')) {
|
|
|
|
|
|
|
|
badge = (<div className='account-role group'><FormattedMessage id='account.badges.group' defaultMessage='Group' /></div>);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
badge = null;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className={classNames('account__header', { inactive: !!account.get('moved') })} ref={this.setRef}>
|
|
|
|
<div className={classNames('account__header', { inactive: !!account.get('moved') })} ref={this.setRef}>
|
|
|
|
<div className='account__header__image'>
|
|
|
|
<div className='account__header__image'>
|
|
|
|