KyleMit / eleventy-plugin-embed-tweet

A plugin for embedding tweets on the server side during build time
https://www.npmjs.com/package/eleventy-plugin-embed-tweet
25 stars 4 forks source link

Tweet ID from suspended account kills eleventy build process #12

Open scottpdawson opened 3 years ago

scottpdawson commented 3 years ago

If you embed a tweet from a suspended account, like this one, the build process fails when processTweet tries to access variables that are not in the response. In this use case, I had embedded the tweet when the account was not suspended and discovered the bug after the build started failing last week. The error from Twitter is misleading, too, "User has been suspended." making me think it was my user account that was suspended. Removing the tweet from my pages fixed the build issue, but it'd be good to update the code so it doesn't fail the build if existing tweets have an issue.