diff --git a/packages/nodes-base/nodes/Twitter/TweetDescription.ts b/packages/nodes-base/nodes/Twitter/TweetDescription.ts index aece462828..254f600b48 100644 --- a/packages/nodes-base/nodes/Twitter/TweetDescription.ts +++ b/packages/nodes-base/nodes/Twitter/TweetDescription.ts @@ -357,6 +357,23 @@ export const tweetFields = [ default: 'mixed', description: 'Specifies what type of search results you would prefer to receive', }, + { + displayName: 'Tweet Mode', + name: 'tweetMode', + type: 'options', + options: [ + { + name: 'Compatibility', + value: 'compat', + }, + { + name: 'Extended', + value: 'extended', + }, + ], + default: 'compat', + description: 'When the extended mode is selected, the response contains the entire untruncated text of the Tweet', + }, { displayName: 'Until', name: 'until', diff --git a/packages/nodes-base/nodes/Twitter/Twitter.node.ts b/packages/nodes-base/nodes/Twitter/Twitter.node.ts index 7d8aab996e..c3218d7326 100644 --- a/packages/nodes-base/nodes/Twitter/Twitter.node.ts +++ b/packages/nodes-base/nodes/Twitter/Twitter.node.ts @@ -235,6 +235,8 @@ export class Twitter implements INodeType { } } + qs.tweet_mode = additionalFields.tweetMode || 'compat'; + if (returnAll) { responseData = await twitterApiRequestAllItems.call(this, 'statuses', 'GET', '/search/tweets.json', {}, qs); } else {