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:
commit
dfae278741
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue