code review

merge-requests/155/head
Mary Kate 4 years ago
parent edb15ce150
commit 7931a9a89d

@ -11,6 +11,7 @@ import { shortNumberFormat } from 'soapbox/utils/numbers';
import { acctFull } from 'soapbox/utils/accounts';
import StillImage from 'soapbox/components/still_image';
import VerificationBadge from 'soapbox/components/verification_badge';
import { List as ImmutableList } from 'immutable';
class UserPanel extends ImmutablePureComponent {
@ -25,7 +26,7 @@ class UserPanel extends ImmutablePureComponent {
if (!account) return null;
const displayNameHtml = { __html: account.get('display_name_html') };
const acct = account.get('acct').indexOf('@') === -1 && domain ? `${account.get('acct')}@${domain}` : account.get('acct');
const verified = account.get('pleroma').get('tags').includes('verified');
const verified = account.getIn(['pleroma', 'tags'], ImmutableList()).includes('verified');
return (
<div className='user-panel'>

@ -20,7 +20,7 @@
.column,
.drawer {
flex: 1 1 100%;
overflow: hidden;
overflow: visible;
}
.drawer__pager {

Loading…
Cancel
Save