mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-11 02:59:59 -04:00
Use direct references for configuration variables (part 5). (#10897)
This commit is contained in:
parent
85551b7a85
commit
bb7fdd821b
48 changed files with 128 additions and 113 deletions
|
@ -267,7 +267,7 @@ def register_servlets_for_client_rest_resource(
|
|||
|
||||
# Load the media repo ones if we're using them. Otherwise load the servlets which
|
||||
# don't need a media repo (typically readonly admin APIs).
|
||||
if hs.config.can_load_media_repo:
|
||||
if hs.config.media.can_load_media_repo:
|
||||
register_servlets_for_media_repo(hs, http_server)
|
||||
else:
|
||||
ListMediaInRoom(hs).register(http_server)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue