Skip to main content

Module moderation

Module moderation 

Source

Structs§

ForeignModeration 🔒
Some databases store suspension and lock state under differently-named columns and a richer value; tuwunel keeps only the forensic when/by, with row presence as the flag. suspended_by is an unvalidated string in the source, so it is parsed leniently when copied.

Functions§

copy_moderation 🔒
copy_one 🔒
Writes one Moderation into the target column. A false return is a cleared entry (suspended == false), which has no tuwunel representation.
migrate_moderation 🔒
Copies foreign suspension and lock columns into tuwunel’s own. Runs every boot and is non-destructive: the source columns are read, never removed, so a database also opened by its origin server keeps working. A no-op when the source columns are absent.
tally 🔒
to_moderation 🔒
Maps a foreign entry to tuwunel’s Moderation. The suspension is preserved even when the recorded actor is unparsable, attributing it to the importing server; the actor is forensic only, while the row’s presence is the flag.