Why Does the Twitter Node Return Truncated Text?

Hi All. I just noticed the twitter search node responds with tweets whose text is truncated. See below.

This the actual Tweet
image

According to a 2017 SO post:
The Twitter API has been changed recently, to support new rules regarding the 280 characters limit.

  1. To get the full text of the tweet, add parameter tweet_mode with value extended to your request parameters.
  2. Field text in the JSON response has been replaced by full_text

How do I send the additional request parameters?

{
"created_at": "Fri Oct 15 23:38:58 +0000 2021",
"id": 1449157886307876900,
"id_str": "1449157886307876868",
"text": "What’s up branded family🙌🏼 We are actively hiring for multiple positions at our headquarters in Mesa, AZ. *ALL POSI… https://t.co/6y8evPZvpi",
"truncated": true,
"entities": {
"hashtags": [
],
"symbols": [
],
"user_mentions": [
],
"urls": [
{
"url": "https://t.co/6y8evPZvpi",
"expanded_url": "https://twitter.com/i/web/status/1449157886307876868",
"display_url": "twitter.com/i/web/status/1…",
"indices": [
117,
140
]
}
]
},

Hey @datdudejibril,

You may need to update the node itself unless you can just the option to the search query you use.

You would need to pop it in after line 212 here: n8n/Twitter.node.ts at master · n8n-io/n8n · GitHub

It may be worth updating the UI as well so you have the option as a bool.

@datdudejibril got added. We will let you know when it’s released.

2 Likes

Got released with [email protected]