summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorErik Johnston <erikj@element.io>2024-07-09 18:29:32 +0100
committerGitHub <noreply@github.com>2024-07-09 18:29:32 +0100
commit22fbc5be5482beaefc98a16c92f0e5b0dad84151 (patch)
treee5a70ecc952ba3b68018cae9df91db503c8581e2 /synapse/rest
parentNote the new federated media worker endpoints in the worker docs & upgrade no... (diff)
downloadsynapse-22fbc5be5482beaefc98a16c92f0e5b0dad84151.tar.xz
Fix new media APIs when using synapse.app.media_repository (#17420)
Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/__init__.py b/synapse/rest/__init__.py
index c94d454a28..1aa9ea3877 100644
--- a/synapse/rest/__init__.py
+++ b/synapse/rest/__init__.py
@@ -145,7 +145,7 @@ class ClientRestResource(JsonResource):
         password_policy.register_servlets(hs, client_resource)
         knock.register_servlets(hs, client_resource)
         appservice_ping.register_servlets(hs, client_resource)
-        if hs.config.server.enable_media_repo:
+        if hs.config.media.can_load_media_repo:
             from synapse.rest.client import media
 
             media.register_servlets(hs, client_resource)