fn audit( state: &AppState, actor: &Actor, target_slug: &str, ok: bool, error: Option<&str>, note: &str, ) -> String