summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-04-19 14:49:31 +0100
committerErik Johnston <erik@matrix.org>2016-04-19 14:49:31 +0100
commita7001c311b76fbdcefc00b753fa50b1bdd3dc4cf (patch)
treef641ccad128228f4ed348a80a702b38206735962
parentAdd store to PreviewUrlResource (diff)
downloadsynapse-a7001c311b76fbdcefc00b753fa50b1bdd3dc4cf.tar.xz
_make_dirs was moved to MediaRepository
-rw-r--r--synapse/rest/media/v1/preview_url_resource.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/media/v1/preview_url_resource.py b/synapse/rest/media/v1/preview_url_resource.py
index 70087e959a..3d93d928e4 100644
--- a/synapse/rest/media/v1/preview_url_resource.py
+++ b/synapse/rest/media/v1/preview_url_resource.py
@@ -370,7 +370,7 @@ class PreviewUrlResource(Resource):
         file_id = random_string(24)
 
         fname = self.filepaths.local_media_filepath(file_id)
-        self._makedirs(fname)
+        self.media_repo._makedirs(fname)
 
         try:
             with open(fname, "wb") as f: