Request JSON for oEmbed requests (and ignore XML only providers). (#10759)
This adds the format to the request arguments / URL to ensure that JSON data is returned (which is all that Synapse supports). This also adds additional error checking / filtering to the configuration file to ignore XML-only providers.
Showing
- changelog.d/10759.feature 1 addition, 0 deletionschangelog.d/10759.feature
- synapse/config/oembed.py 20 additions, 4 deletionssynapse/config/oembed.py
- synapse/rest/media/v1/oembed.py 23 additions, 3 deletionssynapse/rest/media/v1/oembed.py
- tests/rest/media/v1/test_url_preview.py 54 additions, 1 deletiontests/rest/media/v1/test_url_preview.py
Loading
Please register or sign in to comment