-
- Downloads
URL preview blacklisting fixes (#5155)
Prevents a SynapseError being raised inside of a IResolutionReceiver and instead opts to just return 0 results. This thus means that we have to lump a failed lookup and a blacklisted lookup together with the same error message, but the substitute should be generic enough to cover both cases.
Showing
- changelog.d/5155.misc 1 addition, 0 deletionschangelog.d/5155.misc
- synapse/http/client.py 25 additions, 20 deletionssynapse/http/client.py
- synapse/rest/media/v1/preview_url_resource.py 10 additions, 0 deletionssynapse/rest/media/v1/preview_url_resource.py
- tests/rest/media/v1/test_url_preview.py 11 additions, 11 deletionstests/rest/media/v1/test_url_preview.py
Loading
Please register or sign in to comment