Make redactions permanent (#1337)

* Make redactions permanent

* Update storage.go
This commit is contained in:
Neil Alexander 2020-08-25 15:44:19 +01:00 committed by GitHub
parent 287700baee
commit 819b926820
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,9 +22,7 @@ import (
// will be necessary for compliance with the law. Note that downstream components (syncapi) WILL delete information // will be necessary for compliance with the law. Note that downstream components (syncapi) WILL delete information
// in their database on receipt of a redaction. Also note that we still modify the event JSON to set the field // in their database on receipt of a redaction. Also note that we still modify the event JSON to set the field
// unsigned.redacted_because - we just don't clear out the content fields yet. // unsigned.redacted_because - we just don't clear out the content fields yet.
// const redactionsArePermanent = true
// If this hasn't been done by 09/2020 this should be flipped to true.
const redactionsArePermanent = false
type Database struct { type Database struct {
DB *sql.DB DB *sql.DB