Common-SenseMakers / sensemakers

Sensemakers infrastructure for developing AI-based tools for semantic annotations of social posts. Cross-poster app to publish your semantic posts on different networks.
GNU General Public License v3.0
1 stars 2 forks source link

[APP] determine how to handle `note_tweet`s (tweets longer than 280 characters) #49

Closed weswalla closed 4 months ago

weswalla commented 4 months ago

the docs outline a note_tweet field for tweets longer than 280 characters: image https://developer.twitter.com/en/docs/twitter-api/tweets/timelines/api-reference/get-users-id-tweets#tab2

the api client we are using currently doesn't support that input field as a type: image

ronentk commented 4 months ago

Hmm do you think it is an issue with our api plan? The call we are using? I saw this on the developer forum: https://devcommunity.x.com/t/how-do-i-get-extra-long-tweet-text-via-v2-api/209531 Maybe it can help?

Seems they are pretty responsive on the forum if we need to ask anything.

weswalla commented 4 months ago

yeah that looks good. The api client we use currently doesn't support that in the types but we should be able to use @ts-ignore to work around that. I'll probably make a PR on the repo since its 2 lines of code.

weswalla commented 4 months ago

I made a PR to update the types and support the note_tweet field: https://github.com/PLhery/node-twitter-api-v2/pull/526

Regardless, we will need to make sure to handle these cases wherever the full text and other entities (urls, for example) are required. Like in the UI and the NLP service. @pepoospina

pepoospina commented 4 months ago

This is already implemented