Add store to PreviewUrlResource

This commit is contained in:
Erik Johnston 2016-04-19 14:48:24 +01:00
parent fb76a81ff7
commit 9181e2f4c7

View file

@ -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"):