Skip to content

Commit 688f635

Browse files
authored
Updated providers.json to use X instead of Twitter following rebrand and schema change (#18767)
1 parent 04721c8 commit 688f635

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

changelog.d/18767.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update OEmbed providers to use 'X' instead of 'Twitter' in URL previews, following a rebrand. Contributed by @HammyHavoc.

synapse/res/providers.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
[
22
{
3-
"provider_name": "Twitter",
4-
"provider_url": "http://www.twitter.com/",
3+
"provider_name": "X",
4+
"provider_url": "https://x.com/",
55
"endpoints": [
66
{
77
"schemes": [
8-
"https://twitter.com/*/moments/*",
9-
"https://*.twitter.com/*/moments/*"
8+
"https://x.com/*",
9+
"https://x.com/*/status/*",
10+
"https://*.x.com/*/status/*"
1011
],
11-
"url": "https://publish.twitter.com/oembed"
12+
"url": "https://publish.x.com/oembed"
1213
}
1314
]
1415
},

0 commit comments

Comments
 (0)