Implement local redaction blocking

This commit is contained in:
dasha_uwu
2026-02-04 21:35:33 +05:00
committed by Jason Volk
parent e1dc52200c
commit baa1e52302
4 changed files with 57 additions and 3 deletions

View File

@@ -2019,6 +2019,12 @@ pub struct Config {
#[serde(default = "true_fn")]
pub allow_room_admins_to_request_unredacted_events: bool,
/// Prevents local users from sending redactions.
///
/// This check does not apply to server admins.
#[serde(default)]
pub disable_local_redactions: bool,
/// Enable database pool affinity support. On supporting systems, block
/// device queue topologies are detected and the request pool is optimized
/// for the hardware; db_pool_workers is determined automatically.