From 688f635b59cd8f0cdd95e4b032c9234d3971591d Mon Sep 17 00:00:00 2001 From: Hammy Havoc Date: Fri, 26 Sep 2025 11:06:50 +0100 Subject: [PATCH] Updated providers.json to use X instead of Twitter following rebrand and schema change (#18767) --- changelog.d/18767.misc | 1 + synapse/res/providers.json | 11 ++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 changelog.d/18767.misc diff --git a/changelog.d/18767.misc b/changelog.d/18767.misc new file mode 100644 index 000000000..5fa32a9f9 --- /dev/null +++ b/changelog.d/18767.misc @@ -0,0 +1 @@ +Update OEmbed providers to use 'X' instead of 'Twitter' in URL previews, following a rebrand. Contributed by @HammyHavoc. diff --git a/synapse/res/providers.json b/synapse/res/providers.json index 2dc9fec8e..48ad5dabd 100644 --- a/synapse/res/providers.json +++ b/synapse/res/providers.json @@ -1,14 +1,15 @@ [ { - "provider_name": "Twitter", - "provider_url": "http://www.twitter.com/", + "provider_name": "X", + "provider_url": "https://x.com/", "endpoints": [ { "schemes": [ - "https://twitter.com/*/moments/*", - "https://*.twitter.com/*/moments/*" + "https://x.com/*", + "https://x.com/*/status/*", + "https://*.x.com/*/status/*" ], - "url": "https://publish.twitter.com/oembed" + "url": "https://publish.x.com/oembed" } ] },