twitter-openapi
twitter-openapi copied to clipboard
quote tweet of muted account causes syntax error
If you try to deserialize a tweet that is a quote tweet of an account that you have muted, then that fails because this is in the JSON:
"tweetInterstitial": {
"__typename": "ContextualTweetInterstitial",
"displayType": "EntireTweet",
"text": {
"rtl": false,
"text": "This Post is from an account you muted.",
"entities": []
},
"revealText": {
"rtl": false,
"text": "View",
"entities": []
}
}
...but EntireTweet is not a valid value for DisplayType (currently, it can only be "NonCompliant").
Example: I muted Elon, which causes problems with https://x.com/simonw/status/1625939168349286401.