Skip to main content

restore_redactions

Function restore_redactions 

Source
pub(super) async fn restore_redactions(services: &Services) -> Result
Expand description

Records each applied redaction that a foreign database left unrecorded on the event it redacted.

Some origin releases keep only a reference to the redaction on the redacted event, both when redacting and in a rewrite of every stored row, so on this server the event reads as unredacted while its content is already gone. Every stored redaction event is matched to its target, which is rewritten in the form a redaction on this server leaves; thread summaries are then rebuilt, also after a start that restored everything before being stopped, so a redacted reply leaves its root’s summary.