diff --git a/synapse/rest/media/v1/download_resource.py b/synapse/rest/media/v1/download_resource.py index 4425d7d24d98..f01b587f574d 100644 --- a/synapse/rest/media/v1/download_resource.py +++ b/synapse/rest/media/v1/download_resource.py @@ -36,7 +36,7 @@ def __init__(self, hs: "HomeServer", media_repo: "MediaRepository"): self.media_repo = media_repo self.server_name = hs.hostname self.clock = hs.get_clock() - self.enable_msc2246 = hs.config.experimental.msc2716_enabled + self.enable_msc2246 = hs.config.experimental.msc2246_enabled async def _async_render_GET(self, request: SynapseRequest) -> None: set_cors_headers(request) diff --git a/synapse/rest/media/v1/media_repository.py b/synapse/rest/media/v1/media_repository.py index 7a5a2e584c0f..1653421127aa 100644 --- a/synapse/rest/media/v1/media_repository.py +++ b/synapse/rest/media/v1/media_repository.py @@ -1200,7 +1200,7 @@ def __init__(self, hs: "HomeServer", version: MediaVersion): ) self.putChild(b"config", MediaConfigResource(hs)) - if version == MediaVersion.UNSTABLE and hs.config.experimental.msc2716_enabled: + if version == MediaVersion.UNSTABLE and hs.config.experimental.msc2246_enabled: self.putChild(b"fi.mau.msc2246", MSC2246MediaRepositoryResource(hs)) diff --git a/synapse/rest/media/v1/thumbnail_resource.py b/synapse/rest/media/v1/thumbnail_resource.py index 0ae691a94925..6a0b7a1fadce 100644 --- a/synapse/rest/media/v1/thumbnail_resource.py +++ b/synapse/rest/media/v1/thumbnail_resource.py @@ -56,7 +56,7 @@ def __init__( self.media_storage = media_storage self.dynamic_thumbnails = hs.config.media.dynamic_thumbnails self.server_name = hs.hostname - self.enable_msc2246 = hs.config.experimental.msc2716_enabled + self.enable_msc2246 = hs.config.experimental.msc2246_enabled async def _async_render_GET(self, request: SynapseRequest) -> None: set_cors_headers(request)