diff --git a/packages/pl-fe/src/components/status-action-bar.tsx b/packages/pl-fe/src/components/status-action-bar.tsx index 1b478cce0..ced526f48 100644 --- a/packages/pl-fe/src/components/status-action-bar.tsx +++ b/packages/pl-fe/src/components/status-action-bar.tsx @@ -372,7 +372,7 @@ const StatusActionBar: React.FC = ({ message: intl.formatMessage(messages.groupBlockFromGroupMessage, { name: status.account.username }), confirm: intl.formatMessage(messages.groupBlockConfirm), onConfirm: () => { - blockGroupMember([status.account.id], { + blockGroupMember([status.account_id], { onSuccess() { toast.success(intl.formatMessage(messages.blocked, { name: account?.acct })); }, @@ -395,7 +395,7 @@ const StatusActionBar: React.FC = ({ const _makeMenu = (publicStatus: boolean) => { const mutingConversation = status.muted; - const ownAccount = status.account.id === me; + const ownAccount = status.account_id === me; const username = status.account.username; const account = status.account; diff --git a/packages/pl-fe/src/components/status.tsx b/packages/pl-fe/src/components/status.tsx index 916982fb8..65ed106b0 100644 --- a/packages/pl-fe/src/components/status.tsx +++ b/packages/pl-fe/src/components/status.tsx @@ -396,8 +396,8 @@ const Status: React.FC = (props) => { {renderStatusInfo()} & { account: Pick }; + status?: Pick; onCancel?: () => void; hideActions: boolean; } @@ -40,7 +40,7 @@ const ReplyIndicator: React.FC = ({ className, status, hideActi = (props) => { case 'move': return account && typeof account === 'object' && notification.target && typeof notification.target === 'object' ? (