Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweets starting with username are marked as replies #887

Open
baatochan opened this issue Jul 12, 2024 · 0 comments
Open

Tweets starting with username are marked as replies #887

baatochan opened this issue Jul 12, 2024 · 0 comments

Comments

@baatochan
Copy link

Hi, sorry if this is by design, but it broke my script recently.
So the tweet in question is that: https://x.com/GoldenDragon166/status/1811460230804291908
The API response is:

{
    "url": "https://twitter.com/GoldenDragon166/status/1811460230804291908",
    "id": "1811460230804291908",
    "text": "@ElekKartofelek jako pokemon?!\n Reszt\u0119 za\u0142ogi si\u0119 robi \ud83e\udee1 ( wolmo )",
    "author": {(...)},
    "replies": 6,
    "retweets": 43,
    "likes": 670,
    "created_at": "Thu Jul 11 17:59:08 +0000 2024",
    "created_timestamp": 1720720748,
    "possibly_sensitive": false,
    "views": 4967,
    "is_note_tweet": false,
    "community_note": null,
    "lang": "pl",
    "replying_to": "ElekKartofelek",
    "replying_to_status": null,
    "media": {(...)},
    "source": "Twitter Web App",
    "twitter_card": "summary_large_image",
    "color": null
}

As you may notice the field replying_to is set to the username that is mentioned at the start of the post, but the replying_to_status is null as it is not a comment, but the standalone tweet. If this behavior is by design then sorry for wasting your time and just close my issue, but I feel like it is an edge-case that should not happen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant