diff options
author | Vitaly Takmazov | 2024-10-10 23:36:53 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2024-10-10 23:36:53 +0300 |
commit | 357657df86dd0af590656bd5f9f545b0749ba8bb (patch) | |
tree | 04cfbba49ac2418cb5dc535678789f862949987d /vnext | |
parent | f604b358c38984cc6520c9f0e943b7b6219fe927 (diff) |
embed: use Twitter embed from `/api/v2/oembed`
Diffstat (limited to 'vnext')
-rw-r--r-- | vnext/src/utils/embed.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vnext/src/utils/embed.js b/vnext/src/utils/embed.js index fcef651d..9c10d6d8 100644 --- a/vnext/src/utils/embed.js +++ b/vnext/src/utils/embed.js @@ -275,7 +275,7 @@ function getEmbeddableLinkTypes() { const twitter_url = reResult[0].startsWith(wrong_prefix) ? reResult[0].replace(wrong_prefix, correct_prefix) : reResult[0] - fetch('https://x.juick.com/oembed?url=' + twitter_url) + fetch('/api/v2/oembed?url=' + twitter_url) .then(response => response.json()) .then(json => { div.innerHTML = json.html |