Merge commit '04a9252a93fe18aa514957765a35e0abe2596864' into glitch-soc/merge-upstream

This commit is contained in:
Claire
2025-03-29 19:19:58 +01:00
4 changed files with 198 additions and 71 deletions

View File

@@ -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,