Add admin support for established user mode. https://github.com/owncast/owncast/issues/1587 (#430)
This commit is contained in:
@@ -31,6 +31,7 @@ export const API_WEB_PORT = '/webserverport';
|
||||
export const API_YP_SWITCH = '/directoryenabled';
|
||||
export const API_CHAT_DISABLE = '/chat/disable';
|
||||
export const API_CHAT_JOIN_MESSAGES_ENABLED = '/chat/joinmessagesenabled';
|
||||
export const API_CHAT_ESTABLISHED_MODE = '/chat/establishedusermode';
|
||||
export const API_CHAT_FORBIDDEN_USERNAMES = '/chat/forbiddenusernames';
|
||||
export const API_CHAT_SUGGESTED_USERNAMES = '/chat/suggestedusernames';
|
||||
export const API_EXTERNAL_ACTIONS = '/externalactions';
|
||||
@@ -212,6 +213,13 @@ export const FIELD_PROPS_CHAT_JOIN_MESSAGES_ENABLED = {
|
||||
configPath: '',
|
||||
label: 'Join Messages',
|
||||
tip: 'Show when a viewer joins the chat.',
|
||||
};
|
||||
|
||||
export const CHAT_ESTABLISHED_USER_MODE = {
|
||||
apiPath: API_CHAT_ESTABLISHED_MODE,
|
||||
configPath: '',
|
||||
label: 'Established users only',
|
||||
tip: 'Only users who have previously been established for some time may chat.',
|
||||
useSubmit: true,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user