oEmbed: Add support of Tumblr

This commit is contained in:
Mikalai Radchuk 2017-04-15 14:15:22 +03:00 committed by Matt Westcott
parent 0611a1b2cd
commit 5f651299df
3 changed files with 5 additions and 0 deletions

View file

@ -15,6 +15,7 @@ Changelog
* "Copy page" form now validates against copying to a destination where the user does not have permission (Henk-Jan van Hasselaar)
* Allows reverse relations in `RelatedFields` for elasticsearch & PostgreSQL search backends (Lucas Moeskops, Bertrand Bordage)
* Added oEmbed support for Facebook (Mikalai Radchuk)
* Added oEmbed support for Tumblr (Mikalai Radchuk)
* Fix: Unauthenticated AJAX requests to admin views now return 403 rather than redirecting to the login page (Karl Hobley)
* Fix: `TableBlock` options `afterChange`, `afterCreateCol`, `afterCreateRow`, `afterRemoveCol`, `afterRemoveRow` and `contextMenu` can now be overridden (Loic Teixeira)
* Fix: The lastmod field returned by wagtailsitemaps now shows the last published date rather than the date of the last draft edit (Matt Westcott)

View file

@ -60,6 +60,7 @@ Other features
* "Copy page" form now validates against copying to a destination where the user does not have permission (Henk-Jan van Hasselaar)
* Allows reverse relations in ``RelatedFields`` for elasticsearch & PostgreSQL search backends (Lucas Moeskops, Bertrand Bordage)
* Added oEmbed support for Facebook (Mikalai Radchuk)
* Added oEmbed support for Tumblr (Mikalai Radchuk)
Bug fixes
~~~~~~~~~

View file

@ -317,6 +317,9 @@ OEMBED_ENDPOINTS = {
"http://issuu.com/oembed": [
"^http(?:s)?://(?:www\\.)?issuu\\.com/[^#?/]+/docs/.+$"
],
"https://www.tumblr.com/oembed/1.0": [
"^http(?:s)?://.+?\\.tumblr\\.com/post/.+$",
]
}