Merge branch 'remove-warning-for-group-posts' into 'develop'

Remove hashtag warning for Group posts

See merge request soapbox-pub/soapbox!2460
This commit is contained in:
Chewbacca 2023-04-24 16:20:10 +00:00
commit dfae278741

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) {