Skip to content

Commit

Permalink
Support x.com for tweets (#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
pajlada committed Sep 10, 2023
1 parent 251e240 commit c2f3c3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- Breaking: Remove the `/twitchemotes/` endpoints. See [issue 332](https://github.com/Chatterino/api/issues/332) for more information. (#465)
- Minor: Use Twitter OG tags if no Twitter credentials are configured. (#522)
- Minor: Support `x.com` for tweets. (#527)
- Fix: We do some more YouTube video ID parsing to ensure broken links (such as `youtube.com/watch?v=foobar?feature=share`) still return the actual video ID, since this is how the browser operates. (#488)
- Dev: Document the `log-development` setting. (#491)
- Dev: Document the `log-level` setting. (#490)
Expand Down
2 changes: 1 addition & 1 deletion internal/resolvers/twitter/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type TwitterResolver struct {
}

func Check(ctx context.Context, url *url.URL) (context.Context, bool) {
if !utils.IsSubdomainOf(url, "twitter.com") {
if !utils.IsSubdomainOf(url, "twitter.com", "x.com") {
return ctx, false
}

Expand Down

0 comments on commit c2f3c3b

Please sign in to comment.