summary refs log tree commit diff
path: root/synapse/handlers/federation.py
diff options
context:
space:
mode:
authorandrew do <dohandrew@protonmail.com>2022-05-04 04:26:11 -0700
committerGitHub <noreply@github.com>2022-05-04 11:26:11 +0000
commit01e625513afbd9645ff642810d559f96fab13278 (patch)
treeac37613e8f0c2564c4cfef3ee12ad591097daefa /synapse/handlers/federation.py
parentFixes to the formatting of README.rst (#12627) (diff)
downloadsynapse-01e625513afbd9645ff642810d559f96fab13278.tar.xz
remove constantly lib use and switch to enums. (#12624)
Diffstat (limited to 'synapse/handlers/federation.py')
-rw-r--r--synapse/handlers/federation.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/federation.py b/synapse/handlers/federation.py
index d2ba70a814..38dc5b1f6e 100644
--- a/synapse/handlers/federation.py
+++ b/synapse/handlers/federation.py
@@ -316,7 +316,7 @@ class FederationHandler:
 
             events_to_check = await self.store.get_events_as_list(
                 event_ids_to_check,
-                redact_behaviour=EventRedactBehaviour.AS_IS,
+                redact_behaviour=EventRedactBehaviour.as_is,
                 get_prev_content=False,
             )
 
@@ -1494,7 +1494,7 @@ class FederationHandler:
 
             events = await self.store.get_events_as_list(
                 batch,
-                redact_behaviour=EventRedactBehaviour.AS_IS,
+                redact_behaviour=EventRedactBehaviour.as_is,
                 allow_rejected=True,
             )
             for event in events: