anonymousland-synapse/tests/rest
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
..
admin Allow Synapse Admin API's Room Search to accept non-ASCII characters (#10859) 2021-09-21 08:04:35 -07:00
client Test that state events sent by modules correctly end up in the room's state (#10835) 2021-09-21 17:40:20 +02:00
key Rewrite the KeyRing (#10035) 2021-06-02 16:37:59 +01:00
media Refactor oEmbed previews (#10814) 2021-09-21 16:09:57 +00:00
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_health.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
test_well_known.py Use direct references for some configuration variables (#10798) 2021-09-13 13:07:12 -04:00