mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-26 09:29:25 -05:00
Add self.media_repo to PreviewUrlResource
This commit is contained in:
parent
a7001c311b
commit
e8884e5e9c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user