Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/18767.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update OEmbed providers to use 'X' instead of 'Twitter' in URL previews, following a rebrand. Contributed by @HammyHavoc.
11 changes: 6 additions & 5 deletions synapse/res/providers.json
Original file line number Diff line number Diff line change
@@ -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/*"
Comment on lines -8 to -9
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you probably want to keep these URLs?

Copy link
Contributor Author

@HammyHavoc HammyHavoc Aug 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moments isn't a feature anymore, and Twitter URLs won't work after the domain change to x.com, despite 301 redirects, as they otherwise won't be in the schema.

"https://x.com/*",
"https://x.com/*/status/*",
"https://*.x.com/*/status/*"
],
"url": "https://publish.twitter.com/oembed"
"url": "https://publish.x.com/oembed"
}
]
},
Expand Down
Loading