forked from MirrorHub/synapse
Add self.media_repo to PreviewUrlResource
This commit is contained in:
parent
a7001c311b
commit
e8884e5e9c
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue