[Glitch] Fix crashes with Microsoft Translate on Microsoft Edge

Port e9659ae031 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
master
Claire 2021-07-23 02:53:17 +02:00
parent 34a573ac27
commit 2f6ff14198
1 changed files with 2 additions and 3 deletions

View File

@ -543,9 +543,8 @@ class Status extends ImmutablePureComponent {
return (
<HotKeys handlers={handlers}>
<div ref={this.handleRef} className='status focusable' tabIndex='0'>
{status.getIn(['account', 'display_name']) || status.getIn(['account', 'username'])}
{' '}
{status.get('content')}
<span>{status.getIn(['account', 'display_name']) || status.getIn(['account', 'username'])}</span>
<span>{status.get('content')}</span>
</div>
</HotKeys>
);