From 72925ab8219785cb658c07211e85468ab53131eb Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 21 Sep 2021 14:58:50 -0500 Subject: [PATCH] DisplayName: call isVerified() --- app/soapbox/components/display_name.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/soapbox/components/display_name.js b/app/soapbox/components/display_name.js index 94d8d99a5..e35a1a60d 100644 --- a/app/soapbox/components/display_name.js +++ b/app/soapbox/components/display_name.js @@ -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');