summary refs log tree commit diff
path: root/synapse/media/url_previewer.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix slipped logging context when media rejected (#17239)Erik Johnston2024-05-291-3/+1
| | | | | | | When a module rejects a piece of media we end up trying to close the same logging context twice. Instead of fixing the existing code we refactor to use an async context manager, which is easier to write correctly.
* Correctly mention previous copyright (#16820)Erik Johnston2024-01-231-0/+2
| | | | | During the migration the automated script to update the copyright headers accidentally got rid of some of the existing copyright lines. Reinstate them.
* Update license headersPatrick Cloke2023-11-211-11/+16
|
* Return attrs for more media repo APIs. (#16611)Patrick Cloke2023-11-091-6/+5
|
* Update ruff config (#16283)Patrick Cloke2023-09-081-3/+1
| | | Enable additional checks & clean-up unneeded configuration.
* Rename blacklist/whitelist internally. (#15620)Patrick Cloke2023-05-191-8/+8
| | | | Avoid renaming configuration settings for now and rename internal code to use blocklist and allowlist instead.
* Apply url_preview_url_blacklist to oEmbed and pre-cached images (#15601)Patrick Cloke2023-05-161-46/+75
| | | | | | | | There are two situations which were previously not properly checked: 1. If the requested URL was replaced with an oEmbed URL, then the oEmbed URL was not checked against url_preview_url_blacklist. 2. Follow-up URLs (either via autodiscovery of oEmbed or to pre-cache images) were not checked against url_preview_url_blacklist.
* Separate HTTP preview code and URL previewer. (#15269)Patrick Cloke2023-03-201-0/+833
Separates REST layer code from the actual URL previewing.