twitter-openapi icon indicating copy to clipboard operation
twitter-openapi copied to clipboard

quote tweet of muted account causes syntax error

Open laszlovandenhoek opened this issue 3 months ago • 0 comments

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.

laszlovandenhoek avatar Sep 08 '25 13:09 laszlovandenhoek