Ensure group_visibility param is passed when creating group
This commit is contained in:
parent
e46a7e8f4a
commit
28a69ad88b
|
@ -789,9 +789,11 @@ const submitGroupEditor = (shouldReset?: boolean) => (dispatch: AppDispatch, get
|
||||||
const note = getState().group_editor.note;
|
const note = getState().group_editor.note;
|
||||||
const avatar = getState().group_editor.avatar;
|
const avatar = getState().group_editor.avatar;
|
||||||
const header = getState().group_editor.header;
|
const header = getState().group_editor.header;
|
||||||
|
const visibility = getState().group_editor.locked ? 'members_only' : 'everyone'; // Truth Social
|
||||||
|
|
||||||
const params: Record<string, any> = {
|
const params: Record<string, any> = {
|
||||||
display_name: displayName,
|
display_name: displayName,
|
||||||
|
group_visibility: visibility,
|
||||||
note,
|
note,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue