From 979b1a78cb0db76ea7c211a9f837fb247ccb662f Mon Sep 17 00:00:00 2001 From: Claire Date: Wed, 8 Apr 2026 13:24:44 +0200 Subject: [PATCH] [Glitch] Fix new profile dropdown blocking without confirmation modal Port 99a219036f36cbba20b6f862e6cc956526497f8d to glitch-soc Signed-off-by: Claire --- .../glitch/features/account_timeline/components/menu.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,