Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix preview of imgur and Tenor URLs. (#11669) | Philippe Daouadi | 2022-01-18 | 1 | -1/+6 |
| | | | | | | By scraping Open Graph information from the HTML even when an autodiscovery endpoint is found. The results are then combined to capture as much information as possible from the page. | ||||
* | Refactor oEmbed previews (#10814) | Patrick Cloke | 2021-09-21 | 1 | -8/+13 |
| | | | | | | | | | | | | | 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. | ||||
* | Use attrs internally for the URL preview code & add documentation. (#10753) | Patrick Cloke | 2021-09-07 | 1 | -0/+51 |