summary refs log tree commit diff
path: root/synapse/rest/media
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-04-19 14:51:34 +0100
committerErik Johnston <erik@matrix.org>2016-04-19 14:51:34 +0100
commite8884e5e9cad42445e14b9f119e2a4f69334f726 (patch)
tree9336163ce5dd9677f9a98502cbd955ac91cac0fc /synapse/rest/media
parent_make_dirs was moved to MediaRepository (diff)
downloadsynapse-e8884e5e9cad42445e14b9f119e2a4f69334f726.tar.xz
Add self.media_repo to PreviewUrlResource
Diffstat (limited to 'synapse/rest/media')
-rw-r--r--synapse/rest/media/v1/preview_url_resource.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/rest/media/v1/preview_url_resource.py b/synapse/rest/media/v1/preview_url_resource.py
index 3d93d928e4..69327ac493 100644
--- a/synapse/rest/media/v1/preview_url_resource.py
+++ b/synapse/rest/media/v1/preview_url_resource.py
@@ -54,6 +54,7 @@ class PreviewUrlResource(Resource):
         self.server_name = hs.hostname
         self.store = hs.get_datastore()
         self.client = SpiderHttpClient(hs)
+        self.media_repo = media_repo
 
         if hasattr(hs.config, "url_preview_url_blacklist"):
             self.url_preview_url_blacklist = hs.config.url_preview_url_blacklist