forked-synapse/synapse/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 Rename /batch_send query parameter from ?prev_event to more obvious usage with ?prev_event_id (MSC2716) (#10839) 2021-09-21 14:10:01 +01:00
consent Add missing type hints to non-client REST servlets. (#10817) 2021-09-15 08:45:32 -04:00
key Add missing type hints to non-client REST servlets. (#10817) 2021-09-15 08:45:32 -04:00
media Refactor oEmbed previews (#10814) 2021-09-21 16:09:57 +00:00
synapse Add missing type hints to non-client REST servlets. (#10817) 2021-09-15 08:45:32 -04:00
__init__.py Add missing type hints to non-client REST servlets. (#10817) 2021-09-15 08:45:32 -04:00
health.py Add missing type hints to non-client REST servlets. (#10817) 2021-09-15 08:45:32 -04:00
well_known.py Add missing type hints to non-client REST servlets. (#10817) 2021-09-15 08:45:32 -04:00