mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-01-30 13:13:20 -05:00
Default to censoring redactions after seven days
This commit is contained in:
parent
e7184a4370
commit
8b9ade8c78
@ -306,10 +306,12 @@ listeners:
|
|||||||
#
|
#
|
||||||
#allow_per_room_profiles: false
|
#allow_per_room_profiles: false
|
||||||
|
|
||||||
# How long to keep redacted events in unredacted form in the database.
|
# How long to keep redacted events in unredacted form in the database. After
|
||||||
# By default redactions are kept indefinitely.
|
# this period redacted events get replaced with their redacted form in the DB.
|
||||||
#
|
#
|
||||||
#redaction_retention_period: 30d
|
# Defaults to `7d`. Set to `null` to disable.
|
||||||
|
#
|
||||||
|
redaction_retention_period: 7d
|
||||||
|
|
||||||
|
|
||||||
## TLS ##
|
## TLS ##
|
||||||
|
@ -164,7 +164,7 @@ class ServerConfig(Config):
|
|||||||
|
|
||||||
# How long to keep redacted events in the database in unredacted form
|
# How long to keep redacted events in the database in unredacted form
|
||||||
# before redacting them.
|
# before redacting them.
|
||||||
redaction_retention_period = config.get("redaction_retention_period")
|
redaction_retention_period = config.get("redaction_retention_period", "7d")
|
||||||
if redaction_retention_period is not None:
|
if redaction_retention_period is not None:
|
||||||
self.redaction_retention_period = self.parse_duration(
|
self.redaction_retention_period = self.parse_duration(
|
||||||
redaction_retention_period
|
redaction_retention_period
|
||||||
@ -729,10 +729,12 @@ class ServerConfig(Config):
|
|||||||
#
|
#
|
||||||
#allow_per_room_profiles: false
|
#allow_per_room_profiles: false
|
||||||
|
|
||||||
# How long to keep redacted events in unredacted form in the database.
|
# How long to keep redacted events in unredacted form in the database. After
|
||||||
# By default redactions are kept indefinitely.
|
# this period redacted events get replaced with their redacted form in the DB.
|
||||||
#
|
#
|
||||||
#redaction_retention_period: 30d
|
# Defaults to `7d`. Set to `null` to disable.
|
||||||
|
#
|
||||||
|
redaction_retention_period: 7d
|
||||||
"""
|
"""
|
||||||
% locals()
|
% locals()
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user