Add self.media_repo to PreviewUrlResource

pull/736/head
Erik Johnston 2016-04-19 14:51:34 +01:00
parent a7001c311b
commit e8884e5e9c
1 changed files with 1 additions and 0 deletions

View File

@ -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