Add 'local' to account schema

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak
2023-10-22 00:14:23 +02:00
parent 0658530447
commit ba5e018e3c
12 changed files with 20 additions and 31 deletions

View File

@@ -17,7 +17,7 @@ import {
AccountNotePanel,
} from 'soapbox/features/ui/util/async-components';
import { useAppSelector, useFeatures, useSoapboxConfig } from 'soapbox/hooks';
import { getAcct, isLocal } from 'soapbox/utils/accounts';
import { getAcct } from 'soapbox/utils/accounts';
interface IProfilePage {
params?: {
@@ -118,7 +118,7 @@ const ProfilePage: React.FC<IProfilePage> = ({ params, children }) => {
{(account && account.fields.length > 0) && (
<ProfileFieldsPanel account={account} />
)}
{(features.accountEndorsements && account && isLocal(account)) ? (
{(features.accountEndorsements && account && account.local) ? (
<PinnedAccountsPanel account={account} limit={5} />
) : me && features.suggestions && (
<WhoToFollowPanel limit={3} />