From 285c71afadf6aed62134dc0165a1e4faba3f603a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 8 Feb 2023 16:38:06 +0100 Subject: [PATCH 1/2] Add oembed providers for youtube shorts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Based on https://core.trac.wordpress.org/changeset/53106 Signed-off-by: Sandro Jäckel --- changelog.d/15025.misc | 1 + synapse/res/providers.json | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 changelog.d/15025.misc diff --git a/changelog.d/15025.misc b/changelog.d/15025.misc new file mode 100644 index 000000000000..9a895646ebaf --- /dev/null +++ b/changelog.d/15025.misc @@ -0,0 +1 @@ +Add oembed providers for youtube shorts. diff --git a/synapse/res/providers.json b/synapse/res/providers.json index 7b9958e45464..2dc9fec8e314 100644 --- a/synapse/res/providers.json +++ b/synapse/res/providers.json @@ -11,5 +11,18 @@ "url": "https://publish.twitter.com/oembed" } ] + }, + { + "provider_name": "YouTube Shorts", + "provider_url": "http://www.youtube.com/", + "endpoints": [ + { + "schemes": [ + "https://youtube.com/shorts/*", + "https://*.youtube.com/shorts/*" + ], + "url": "https://www.youtube.com/oembed" + } + ] } ] From 2bebf087bcadfc5424fd6e8876cd2a229aa20484 Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Wed, 3 May 2023 12:53:07 -0400 Subject: [PATCH 2/2] Update changelog. --- changelog.d/15025.misc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog.d/15025.misc b/changelog.d/15025.misc index 9a895646ebaf..1f04d8572993 100644 --- a/changelog.d/15025.misc +++ b/changelog.d/15025.misc @@ -1 +1 @@ -Add oembed providers for youtube shorts. +Use oEmbed to generate URL previews for YouTube Shorts.