synapse/tests
Patrick Cloke ba7a91aea5
Refactor oEmbed previews (#10814)
The major change is moving the decision of whether to use oEmbed
further up the call-stack. This reverts the _download_url method to
being a "dumb" functionwhich takes a single URL and downloads it
(as it was before #7920).

This also makes more minor refactorings:

* Renames internal variables for clarity.
* Factors out shared code between the HTML and rich oEmbed
  previews.
* Fixes tests to preview an oEmbed image.
2021-09-21 16:09:57 +00:00
..
api
app
appservice
config Add config option to use non-default manhole password and keys (#10643) 2021-09-06 16:08:03 +01:00
crypto
events Support MSC3375: room version 9. (#10747) 2021-09-03 12:51:15 -04:00
federation Split FederationHandler in half (#10692) 2021-08-26 21:41:44 +01:00
handlers Always add local users to the user directory (#10796) 2021-09-21 12:02:34 +00:00
http
logging
module_api
push Synapse 1.42.0rc1 (2021-09-01) 2021-09-01 14:58:14 +01:00
replication Create a constant for a small png image in tests. (#10834) 2021-09-16 12:01:14 -04:00
rest Refactor oEmbed previews (#10814) 2021-09-21 16:09:57 +00:00
scripts
server_notices
state
storage Make StateFilter frozen so we can hash it (#10816) 2021-09-14 16:35:53 +01:00
test_utils Create a constant for a small png image in tests. (#10834) 2021-09-16 12:01:14 -04:00
util
__init__.py
server.py Fix incompatibility with Twisted < 21. (#10713) 2021-08-27 16:33:41 +01:00
test_distributor.py
test_event_auth.py
test_federation.py Get rid of _auth_and_persist_event (#10781) 2021-09-08 19:03:08 +01:00
test_mau.py
test_metrics.py
test_phone_home.py
test_preview.py
test_server.py
test_state.py
test_terms_auth.py
test_test_utils.py
test_types.py
test_visibility.py
unittest.py Add types to synapse.util. (#10601) 2021-09-10 17:03:18 +01:00
utils.py