sforkowany z mirror/soapbox
DisplayName: call isVerified()
rodzic
f4be2e87a2
commit
72925ab821
|
@ -4,11 +4,11 @@ import { connect } from 'react-redux';
|
|||
import ImmutablePropTypes from 'react-immutable-proptypes';
|
||||
import VerificationBadge from './verification_badge';
|
||||
import { getAcct } from '../utils/accounts';
|
||||
import { List as ImmutableList } from 'immutable';
|
||||
import HoverRefWrapper from 'soapbox/components/hover_ref_wrapper';
|
||||
import Icon from './icon';
|
||||
import RelativeTimestamp from './relative_timestamp';
|
||||
import { displayFqn } from 'soapbox/utils/state';
|
||||
import { isVerified } from 'soapbox/utils/accounts';
|
||||
|
||||
const mapStateToProps = state => {
|
||||
return {
|
||||
|
@ -35,7 +35,7 @@ class DisplayName extends React.PureComponent {
|
|||
const { account, displayFqn, others, children, withDate } = this.props;
|
||||
|
||||
let displayName, suffix;
|
||||
const verified = account.getIn(['pleroma', 'tags'], ImmutableList()).includes('verified');
|
||||
const verified = isVerified(account);
|
||||
|
||||
const createdAt = account.get('created_at');
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue