Add Pinterest embed support

- resolves #5471
pull/8198/head
Dharma-09 2022-03-15 17:46:05 +05:30 zatwierdzone przez LB (Ben Johnston)
rodzic 229fbf476a
commit d0133d5fce
4 zmienionych plików z 13 dodań i 0 usunięć

Wyświetl plik

@ -27,6 +27,7 @@ Changelog
* Update `README.md` logo to work for GitHub dark mode (Paarth Agarwal)
* Avoid an unnecessary page reload when pressing enter within the header search bar (Images, Pages, Documents) (Riley de Mestre)
* Removed unofficial length parameter on `If-Modified-Since` header in `sendfile_streaming_backend` which was only used by IE (Mariusz Felisiak)
* Add Pinterest support to the list of default oEmbed providers (Dharmik Gangani)
* Fix: When using `simple_translations` ensure that the user is redirected to the page edit view when submitting for a single locale (Mitchel Cabuloy)
* Fix: When previewing unsaved changes to `Form` pages, ensure that all added fields are correctly shown in the preview (Joshua Munn)
* Fix: When Documents (e.g. PDFs) have been configured to be served inline via `WAGTAILDOCS_CONTENT_TYPES` & `WAGTAILDOCS_INLINE_CONTENT_TYPES` ensure that the filename is correctly set in the `Content-Disposition` header so that saving the files will use the correct filename (John-Scott Atlakson)

Wyświetl plik

@ -572,6 +572,7 @@ Contributors
* Vibhakar Solanki
* Riley de Mestre
* Mariusz Felisiak
* Dharmik Gangani
Translators
===========

Wyświetl plik

@ -52,6 +52,7 @@ The panel types `StreamFieldPanel`, `RichTextFieldPanel`, `ImageChooserPanel`, `
* Update `README.md` logo to work for GitHub dark mode (Paarth Agarwal)
* Avoid an unnecessary page reload when pressing enter within the header search bar (Images, Pages, Documents) (Riley de Mestre)
* Removed unofficial length parameter on `If-Modified-Since` header in `sendfile_streaming_backend` which was only used by IE (Mariusz Felisiak)
* Add Pinterest support to the list of default oEmbed providers (Dharmik Gangani)
### Bug fixes

Wyświetl plik

@ -141,6 +141,15 @@ clickthrough = {
],
}
pinterest = {
"endpoint": "https://www.pinterest.com/oembed.json",
"urls": [
r"^https?://[-\w]+\.pinterest\.com\.?[a-z]*/.+$",
r"^https?://in\.pinterest\.com/.+$",
r"^https?://pin\.it/.+$",
],
}
kinomap = {
"endpoint": "https://www.kinomap.com/oembed",
"urls": [
@ -725,4 +734,5 @@ all_providers = [
vidyard,
reddit,
tidal,
pinterest,
]