summary refs log tree commit diff
path: root/synapse/rest/media/v1/media_repository.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-01-09 11:08:46 +0000
committerErik Johnston <erik@matrix.org>2018-01-09 16:15:07 +0000
commit9d30a7691c7a54bf2d299ea3cdbdf4af74dd0af5 (patch)
treec0872a412ab75c95d4342385ca2d39cccac58cb0 /synapse/rest/media/v1/media_repository.py
parentUse MediaStorage for remote media (diff)
downloadsynapse-9d30a7691c7a54bf2d299ea3cdbdf4af74dd0af5.tar.xz
Make ThumbnailResource use MediaStorage
Diffstat (limited to 'synapse/rest/media/v1/media_repository.py')
-rw-r--r--synapse/rest/media/v1/media_repository.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/rest/media/v1/media_repository.py b/synapse/rest/media/v1/media_repository.py
index 07820fab62..0c84f1be07 100644
--- a/synapse/rest/media/v1/media_repository.py
+++ b/synapse/rest/media/v1/media_repository.py
@@ -637,7 +637,9 @@ class MediaRepositoryResource(Resource):
 
         self.putChild("upload", UploadResource(hs, media_repo))
         self.putChild("download", DownloadResource(hs, media_repo))
-        self.putChild("thumbnail", ThumbnailResource(hs, media_repo))
+        self.putChild("thumbnail", ThumbnailResource(
+            hs, media_repo, media_repo.media_storage,
+        ))
         self.putChild("identicon", IdenticonResource())
         if hs.config.url_preview_enabled:
             self.putChild("preview_url", PreviewUrlResource(hs, media_repo))