From 357657df86dd0af590656bd5f9f545b0749ba8bb Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 10 Oct 2024 23:36:53 +0300 Subject: embed: use Twitter embed from `/api/v2/oembed` --- vnext/src/utils/embed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3