mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 13:36:02 -04:00
Make redaction retention period configurable
This commit is contained in:
parent
549f974897
commit
3ff0422d2d
4 changed files with 27 additions and 3 deletions
|
@ -1566,10 +1566,12 @@ class EventsStore(
|
|||
Deferred
|
||||
"""
|
||||
|
||||
if self.stream_ordering_month_ago is None:
|
||||
if not self.hs.config.redaction_retention_period:
|
||||
return
|
||||
|
||||
max_pos = self.stream_ordering_month_ago
|
||||
max_pos = yield self.find_first_stream_ordering_after_ts(
|
||||
self._clock.time_msec() - self.hs.config.redaction_retention_period
|
||||
)
|
||||
|
||||
# We fetch all redactions that point to an event that we have that has
|
||||
# a stream ordering from over a month ago, that we haven't yet censored
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue