summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-04-19 14:48:24 +0100
committerErik Johnston <erik@matrix.org>2016-04-19 14:48:24 +0100
commit9181e2f4c78acba89644ac21eed5ce7c9fc872c5 (patch)
tree0a75e7530206ccff3bcc057190626f3096b6e364 /synapse/rest
parentReorder imports (diff)
downloadsynapse-9181e2f4c78acba89644ac21eed5ce7c9fc872c5.tar.xz
Add store to PreviewUrlResource
Diffstat (limited to 'synapse/rest')
-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 122b34faea..70087e959a 100644
--- a/synapse/rest/media/v1/preview_url_resource.py
+++ b/synapse/rest/media/v1/preview_url_resource.py
@@ -52,6 +52,7 @@ class PreviewUrlResource(Resource):
         self.filepaths = media_repo.filepaths
         self.max_spider_size = hs.config.max_spider_size
         self.server_name = hs.hostname
+        self.store = hs.get_datastore()
         self.client = SpiderHttpClient(hs)
 
         if hasattr(hs.config, "url_preview_url_blacklist"):