diff --git a/app/javascript/flavours/glitch/features/account_timeline/components/menu.tsx b/app/javascript/flavours/glitch/features/account_timeline/components/menu.tsx index 604f46eda9..18b0b53890 100644 --- a/app/javascript/flavours/glitch/features/account_timeline/components/menu.tsx +++ b/app/javascript/flavours/glitch/features/account_timeline/components/menu.tsx @@ -4,7 +4,6 @@ import type { FC } from 'react'; import { defineMessages, useIntl } from 'react-intl'; import { - blockAccount, followAccount, pinAccount, unblockAccount, @@ -13,6 +12,7 @@ import { } from '@/flavours/glitch/actions/accounts'; import { removeAccountFromFollowers } from '@/flavours/glitch/actions/accounts_typed'; import { showAlert } from '@/flavours/glitch/actions/alerts'; +import { initBlockModal } from '@/flavours/glitch/actions/blocks'; import { directCompose, mentionCompose, @@ -438,7 +438,7 @@ function redesignMenuItems({ if (relationship?.blocking) { dispatch(unblockAccount(account.id)); } else { - dispatch(blockAccount(account.id)); + dispatch(initBlockModal(account)); } }, dangerous: true,