Expand description
Admission policy and lockdown checks (permissions §3.3, §4.6; specification §8.9–8.10).
Structs§
- Active
Lockdown - The lockdown currently in force, as lockdown management sees it.
Constants§
- NEWCOMER_
FORBIDDEN - Bits
newcomer_restrictionsmust never contain (§3.3): newcomers always see and read.
Functions§
- admission_
policy_ update admission.policy.updateofnewcomer_restrictions: valid, and H3 on the bits added or removed (old XOR new ⊆ cp; only the owner exempt, seeh3_owner_only).- lockdown_
disable moderation.lockdown.disable:top(A) ≥the enabling actor’s recorded top (owner exempt), so a lower moderator cannot lift a higher one’s lockdown, and H3 on the bits the lockdown restricts, againstheldas inlockdown_enable.- lockdown_
enable moderation.lockdown.enable(also renewal and replacement): duration within 60 s – 7 days and H3 on the new lockdown’s mask (only the owner exempt). Enabling while one is active replaces it, so the actor must also passlockdown_disablefor the active one: a lower moderator cannot swap a higher one’s lockdown.- validate_
newcomer_ restrictions - Validates a new
newcomer_restrictionsmask: noVIEW_CHANNELorREAD_MESSAGE_HISTORY, no newly set unknown bit.