Add Reddit to oEmbed provider list

- Added endpoint for reddit comments to be embedded
pull/6012/head
lukealhardwick 2020-05-06 08:58:22 -07:00 zatwierdzone przez LB
rodzic 758ebce865
commit 30a66638cb
4 zmienionych plików z 12 dodań i 1 usunięć

Wyświetl plik

@ -18,6 +18,7 @@ Changelog
* Add convenience `page_url` shortcut to improve how page URLs can be accessed from site settings in Django templates (Andy Babic)
* Show more granular error messages from Pillow when uploading images (Rick van Hattem)
* Add ordering to `Site` object, so that index page and `Site` switcher will be sorted consistently (Coen van der Kamp, Tim Leguijt)
* Add Reddit to oEmbed provider list (Luke Hardwick)
* Fix: Support IPv6 domain (Alex Gleason, Coen van der Kamp)
* Fix: Ensure link to add a new user works when no users are visible in the users list (LB (Ben Johnston))
* Fix: `AbstractEmailForm` saved submission fields are now aligned with the email content fields, `form.cleaned_data` will be used instead of `form.fields` (Haydn Greatnews)

Wyświetl plik

@ -456,6 +456,7 @@ Contributors
* Kim LaRocca
* Jonatas Baldin
* Rick van Hattem
* Luke Hardwick
Translators
===========

Wyświetl plik

@ -27,6 +27,7 @@ Other features
* Add convenience ``page_url`` shortcut to improve how page URLs can be accessed from site settings in Django templates (Andy Babic)
* Show more granular error messages from Pillow when uploading images (Rick van Hattem)
* Add ordering to ``Site`` object, so that index page and ``Site`` switcher will be sorted consistently (Coen van der Kamp, Tim Leguijt)
* Add Reddit to oEmbed provider list (Luke Hardwick)
Bug fixes

Wyświetl plik

@ -652,6 +652,13 @@ vidyard = {
]
}
reddit = {
'endpoint': 'https://www.reddit.com/oembed',
'urls': [
'^http(?:s)?://(?:www\\.)?reddit\\.com/r/+[^#?/]+/comments/+[^#?/]+[^#?/].+$',
]
}
all_providers = [
speakerdeck, app_net, youtube, deviantart, blip_tv, dailymotion, flikr,
hulu, nfb, qik, revision3, scribd, viddler, vimeo, dotsub, yfrog,
@ -664,5 +671,6 @@ all_providers = [
circuitlab, geograph_uk, hlipp, geograph_gg, vzaar, minoto, videojug, sapo,
vhx_tv, justin_tv, official_fm, huffduffer, spotify, shoudio, mobypicture,
twenty_three_hq, gmep, urtak, cacoo, dailymile, dipity, sketchfab, meetup,
roomshare, crowd_ranking, etsy, audioboom, clikthrough, ifttt, issuu, tumblr, vidyard
roomshare, crowd_ranking, etsy, audioboom, clikthrough, ifttt, issuu, tumblr, vidyard,
reddit
]