From 1f474c167bad46b8725892078af63b21f69a334b Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 21 Sep 2021 17:29:47 -0500 Subject: [PATCH] ProfileInfoPanel: call isVerified() --- app/soapbox/features/ui/components/profile_info_panel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/soapbox/features/ui/components/profile_info_panel.js b/app/soapbox/features/ui/components/profile_info_panel.js index 85cba70d7..89e34e493 100644 --- a/app/soapbox/features/ui/components/profile_info_panel.js +++ b/app/soapbox/features/ui/components/profile_info_panel.js @@ -11,7 +11,7 @@ import Icon from 'soapbox/components/icon'; import VerificationBadge from 'soapbox/components/verification_badge'; import Badge from 'soapbox/components/badge'; import { List as ImmutableList } from 'immutable'; -import { getAcct, isAdmin, isModerator, isLocal } from 'soapbox/utils/accounts'; +import { getAcct, isAdmin, isModerator, isLocal, isVerified } from 'soapbox/utils/accounts'; import { displayFqn } from 'soapbox/utils/state'; import classNames from 'classnames'; import { CryptoAddress } from 'soapbox/features/ui/util/async-components'; @@ -102,7 +102,7 @@ class ProfileInfoPanel extends ImmutablePureComponent { const deactivated = !account.getIn(['pleroma', 'is_active'], true); const displayNameHtml = deactivated ? { __html: intl.formatMessage(messages.deactivated) } : { __html: account.get('display_name_html') }; const memberSinceDate = intl.formatDate(account.get('created_at'), { month: 'long', year: 'numeric' }); - const verified = account.getIn(['pleroma', 'tags'], ImmutableList()).includes('verified'); + const verified = isVerified(account); const badges = this.getBadges(); return (