summary refs log tree commit diff
path: root/synapse/rest/__init__.py
diff options
context:
space:
mode:
authorreivilibre <oliverw@matrix.org>2023-02-28 16:37:19 +0000
committerGitHub <noreply@github.com>2023-02-28 16:37:19 +0000
commit682d31c7023b6b7299e74bc631e4d2acc60f91ac (patch)
treef5f8ec31099dcfe5f4f4ae753850e2a890ca14f9 /synapse/rest/__init__.py
parentAdd missing type hints to InsecureInterceptableContextFactory. (#15164) (diff)
downloadsynapse-682d31c7023b6b7299e74bc631e4d2acc60f91ac.tar.xz
Allow use of the `/filter` Client-Server APIs on workers. (#15134)
Diffstat (limited to 'synapse/rest/__init__.py')
-rw-r--r--synapse/rest/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/rest/__init__.py b/synapse/rest/__init__.py
index 14c4e6ebbb..c327f15043 100644
--- a/synapse/rest/__init__.py
+++ b/synapse/rest/__init__.py
@@ -108,8 +108,7 @@ class ClientRestResource(JsonResource):
         if is_main_process:
             logout.register_servlets(hs, client_resource)
         sync.register_servlets(hs, client_resource)
-        if is_main_process:
-            filter.register_servlets(hs, client_resource)
+        filter.register_servlets(hs, client_resource)
         account.register_servlets(hs, client_resource)
         register.register_servlets(hs, client_resource)
         if is_main_process: