Merge branch 'release-v1.3.0' of github.com:matrix-org/synapse into matrix-org-hotfixes
This commit is contained in:
commit
8d5762b0dc
1
changelog.d/5848.feature
Normal file
1
changelog.d/5848.feature
Normal file
|
@ -0,0 +1 @@
|
|||
Synapse will no longer serve any media repo admin endpoints when `enable_media_repo` is set to False in the configuration. If a media repo worker is used, the admin APIs relating to the media repo will be served from it instead.
|
|
@ -93,7 +93,7 @@ class ContentRepositoryConfig(Config):
|
|||
# current worker app is the media repo.
|
||||
if (
|
||||
self.enable_media_repo is False
|
||||
and config.worker_app != "synapse.app.media_repository"
|
||||
and config.get("worker_app") != "synapse.app.media_repository"
|
||||
):
|
||||
self.can_load_media_repo = False
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue