Remove hashtag warning for Group posts

This commit is contained in:
Chewbacca 2023-04-21 10:19:37 -04:00
parent fc6eba91ac
commit 620e0cb606

View file

@ -18,7 +18,7 @@ const WarningWrapper: React.FC<IWarningWrapper> = ({ composeId }) => {
const me = useAppSelector((state) => state.me); const me = useAppSelector((state) => state.me);
const needsLockWarning = useAppSelector((state) => compose.privacy === 'private' && !state.accounts.get(me)!.locked); const needsLockWarning = useAppSelector((state) => compose.privacy === 'private' && !state.accounts.get(me)!.locked);
const hashtagWarning = compose.privacy !== 'public' && APPROX_HASHTAG_RE.test(compose.text); const hashtagWarning = (compose.privacy !== 'public' && compose.privacy !== 'group') && APPROX_HASHTAG_RE.test(compose.text);
const directMessageWarning = compose.privacy === 'direct'; const directMessageWarning = compose.privacy === 'direct';
if (needsLockWarning) { if (needsLockWarning) {