From 04a9252a93fe18aa514957765a35e0abe2596864 Mon Sep 17 00:00:00 2001 From: Claire Date: Sat, 29 Mar 2025 19:06:46 +0100 Subject: [PATCH] Fix incorrect locked account warning in composer (#34312) --- app/javascript/mastodon/features/compose/components/warning.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/mastodon/features/compose/components/warning.tsx b/app/javascript/mastodon/features/compose/components/warning.tsx index 5c5482fb9d..f862f84cba 100644 --- a/app/javascript/mastodon/features/compose/components/warning.tsx +++ b/app/javascript/mastodon/features/compose/components/warning.tsx @@ -11,7 +11,7 @@ import { HASHTAG_PATTERN_REGEX } from 'mastodon/utils/hashtags'; const selector = createSelector( (state: RootState) => state.compose.get('privacy') as string, - (state: RootState) => !!state.compose.getIn(['accounts', me, 'locked']), + (state: RootState) => !!state.accounts.getIn([me, 'locked']), (state: RootState) => state.compose.get('text') as string, (privacy, locked, text) => ({ needsLockWarning: privacy === 'private' && !locked,