config option to block non-admin room invites
works just like block_non_admin_invites from synapse Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
c97483dbd3
commit
ea66bff46b
5 changed files with 34 additions and 0 deletions
|
@ -163,6 +163,9 @@ pub struct Config {
|
|||
#[serde(with = "serde_regex")]
|
||||
pub forbidden_usernames: RegexSet,
|
||||
|
||||
#[serde(default)]
|
||||
pub block_non_admin_invites: bool,
|
||||
|
||||
#[serde(flatten)]
|
||||
pub catchall: BTreeMap<String, IgnoredAny>,
|
||||
}
|
||||
|
@ -277,6 +280,10 @@ impl fmt::Display for Config {
|
|||
"Allow local presence requests (updates)",
|
||||
&self.allow_local_presence.to_string(),
|
||||
),
|
||||
(
|
||||
"Block non-admin room invites (local and remote) and block all incoming remote invites",
|
||||
&self.block_non_admin_invites.to_string(),
|
||||
),
|
||||
(
|
||||
"Allow device name federation",
|
||||
&self.allow_device_name_federation.to_string(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue