Skip to main content

to_moderation

Function to_moderation 

Source
fn to_moderation(entry: &Foreign<'_>, fallback: &UserId) -> Moderation
Expand description

Maps a foreign entry to tuwunel’s own record.

An entry whose actor is unparsable is kept all the same, credited to fallback: the actor is forensic only, while the row’s presence is the flag.