Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
async media: fix the flag being used
Browse files Browse the repository at this point in the history
Signed-off-by: Sumner Evans <[email protected]>
  • Loading branch information
sumnerevans committed May 30, 2022
1 parent 128217d commit 26f8e8d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion synapse/rest/media/v1/download_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion synapse/rest/media/v1/media_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))


Expand Down
2 changes: 1 addition & 1 deletion synapse/rest/media/v1/thumbnail_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 26f8e8d

Please sign in to comment.