mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-15 10:31:52 +02:00
feat: option to allow auto-joining of groups (optionally skip the "request membership" step)
This commit is contained in:
@@ -55,6 +55,10 @@ module.exports = function (Groups) {
|
||||
payload.disableLeave = values.disableLeave ? '1' : '0';
|
||||
}
|
||||
|
||||
if (values.hasOwnProperty('autojoin')) {
|
||||
payload.autojoin = values.autojoin ? '1' : '0';
|
||||
}
|
||||
|
||||
if (values.hasOwnProperty('name')) {
|
||||
await checkNameChange(groupName, values.name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user