summary refs log tree commit diff
path: root/synapse/handlers/stats.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2021-09-08 10:00:43 -0400
committerGitHub <noreply@github.com>2021-09-08 10:00:43 -0400
commit0288e6033b08149867e742283bb0139f10b66b01 (patch)
tree968d6379f70b6d30c4ba861bf2cd3fc1db61df10 /synapse/handlers/stats.py
parentChange logging of puppeted requests to better differentiate users (#10779) (diff)
downloadsynapse-0288e6033b08149867e742283bb0139f10b66b01.tar.xz
Add a constant for m.federate. (#10775)
Diffstat (limited to 'synapse/handlers/stats.py')
-rw-r--r--synapse/handlers/stats.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/stats.py b/synapse/handlers/stats.py
index 3a4c41c9ff..47f2e2a0c1 100644
--- a/synapse/handlers/stats.py
+++ b/synapse/handlers/stats.py
@@ -254,7 +254,7 @@ class StatsHandler:
 
             elif typ == EventTypes.Create:
                 room_state["is_federatable"] = (
-                    event_content.get("m.federate", True) is True
+                    event_content.get(EventContentFields.FEDERATE, True) is True
                 )
             elif typ == EventTypes.JoinRules:
                 room_state["join_rules"] = event_content.get("join_rule")