mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 14:04:55 -04:00
Handle setting retention period to 0
This commit is contained in:
parent
591d82f06b
commit
80e14a8546
2 changed files with 2 additions and 2 deletions
|
@ -165,7 +165,7 @@ class ServerConfig(Config):
|
|||
# How long to keep redacted events in the database in unredacted form
|
||||
# before redacting them.
|
||||
redaction_retention_period = config.get("redaction_retention_period")
|
||||
if redaction_retention_period:
|
||||
if redaction_retention_period is not None:
|
||||
self.redaction_retention_period = self.parse_duration(
|
||||
redaction_retention_period
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue