tweet2image 使えなくなっちゃった
from 2023/09/15
tweet2image使えなくなっちゃった基素.icon
https://github.com/ci7lus/tweet2image にissueよろtakker.icon
https://code2svg.vercel.app/svg/L62-68,blanks=1/https://raw.githubusercontent.com/ci7lus/tweet2image/45c7fbf1c0608b845f0042a8d87e750321c6a729/app/routes/%24path.tsx#.svg https://github.com/ci7lus/tweet2image/blob/45c7fbf1c0608b845f0042a8d87e750321c6a729/app/routes/%24path.tsx#L67
ここかな?
それっぽいjsonが返ってくるから違うかも
https://publish.twitter.com/oembed?url=https%3A%2F%2Ftwitter.com%2Ftwitter%2Fstatus%2F1702312155155222729&partner=&hide_thread=false&lang=en
埋め込みが壊れたとは思えないから、URL parametersが変わったのかなtakker.icon
cdn.syndication.twimg.com/tweet-result?id=:tweetIdこれかな?
tokenつけるやつ
っぽいtakker.icon
元々何もパラメーター与えてない?基素.icon
https://code2svg.vercel.app/svg/L171-177,blanks=2/https://raw.githubusercontent.com/ci7lus/tweet2image/45c7fbf1c0608b845f0042a8d87e750321c6a729/app/routes/$path.tsx#.svg https://github.com/ci7lus/tweet2image/blob/45c7fbf1c0608b845f0042a8d87e750321c6a729/app/routes/$path.tsx#L171-L177
ほんとだtakker.icon
git blameしてcommitたどらないと意図がわからなそう(スマホだとむずい)
埋め込みをスクショするだけでいいのに、なんでcdn.syndication.twimg.com/tweet-result?id=:tweetIdをわざわざ叩いているんだろうtakker.icon
t2iSkipSensitiveWarningこのフラグをみているのでsensitive回避の時にはこっちじゃないとダメなのかもしれない基素.icon
でもcdn.syndication.twimg.com/tweet-result?id=:tweetIdを使っている/motoso/Tweetを取り込むPopup menu v2では/motoso/Tweetを取り込むPopup menu v2#64631eac774b1700003be421の問題があって取れないような気がするんだよな〜
そんなフラグあったんだtakker.icon
cdn.syndication.twimg.com/tweet-result?id=:tweetIdで試したことはないので、もしかしたらできるのかも
なるほど基素.icon
ダメだった
"text": "Age-restricted adult content. This content might not be appropriate for people under 18 years old. To view this media, you\u2019ll need to log in to X. Learn more",
t2iSkipSensitiveWarningはtweet2imageの条件分岐に使われてるやつですね(Twitterの何かではない)基素.icon
なるほど、tweeet2imageを叩く時に与えるURL parameterだったんですね(コード確認した)takker.icon
旧ドメインのtweet-card.now.shは動いているっぽいtakker.icon
おそらく埋め込みを直接スクショして返すという古いコードで動いているのだと思う
/sno2wman/tweet2image