From e8884e5e9cad42445e14b9f119e2a4f69334f726 Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Tue, 19 Apr 2016 14:51:34 +0100 Subject: Add self.media_repo to PreviewUrlResource --- synapse/rest/media/v1/preview_url_resource.py | 1 + 1 file changed, 1 insertion(+) (limited to 'synapse') 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 -- cgit 1.4.1