Skip to content

QuotedTweet.self_thread is optional in syndication responses #225

Description

@ocavue

react-tweet@3.3.1 requires QuotedTweet.self_thread to exist based on the type in tweet.ts.

However, the actual HTTP response doesn't have self_thread, as shown in the example below:

$ curl -fsSL https://react-tweet.vercel.app/api/tweet/1523695856074969088 | jq '.data.quoted_tweet.text'
"“It’s full of stars!” ✨\n\nThis mosaic represents a sparkling turning point as we #UnfoldTheUniverse. #NASAWebb’s mirrors are now fully aligned! Next is instrument calibration, the final phase before Webb is ready for science: https://t.co/PcAxajyMfI\n\nWhat do we see here? ⤵️ https://t.co/qzdZRbsgRF"

$ curl -fsSL https://react-tweet.vercel.app/api/tweet/1523695856074969088 | jq '.data.quoted_tweet.self_thread'
null

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions