Add self.media_repo to PreviewUrlResource

This commit is contained in:
Erik Johnston 2016-04-19 14:51:34 +01:00
parent a7001c311b
commit e8884e5e9c

View File

@ -54,6 +54,7 @@ class PreviewUrlResource(Resource):
self.server_name = hs.hostname self.server_name = hs.hostname
self.store = hs.get_datastore() self.store = hs.get_datastore()
self.client = SpiderHttpClient(hs) self.client = SpiderHttpClient(hs)
self.media_repo = media_repo
if hasattr(hs.config, "url_preview_url_blacklist"): if hasattr(hs.config, "url_preview_url_blacklist"):
self.url_preview_url_blacklist = hs.config.url_preview_url_blacklist self.url_preview_url_blacklist = hs.config.url_preview_url_blacklist