From fcd4b8f8f6162ecebc424047f75d28274a17b25e Mon Sep 17 00:00:00 2001 From: pseudoyu Date: Tue, 17 Dec 2024 00:37:29 +0800 Subject: [PATCH] feat(route/twitter): support third-party twitter keywords api --- lib/routes/twitter/api/web-api/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/routes/twitter/api/web-api/constants.ts b/lib/routes/twitter/api/web-api/constants.ts index 4b3d9880b..aecefd1ab 100644 --- a/lib/routes/twitter/api/web-api/constants.ts +++ b/lib/routes/twitter/api/web-api/constants.ts @@ -15,7 +15,7 @@ const graphQLEndpointsPlain = [ const gqlMap = Object.fromEntries(graphQLEndpointsPlain.map((endpoint) => [endpoint.split('/')[3].replace(/V2$|Query$|QueryV2$/, ''), endpoint])); -const thirdPartySupportedAPI = ['UserByScreenName', 'UserByRestId', 'UserTweets', 'UserTweetsAndReplies', 'ListLatestTweetsTimeline']; +const thirdPartySupportedAPI = ['UserByScreenName', 'UserByRestId', 'UserTweets', 'UserTweetsAndReplies', 'ListLatestTweetsTimeline', 'SearchTimeline']; const gqlFeatureUser = { hidden_profile_subscriptions_enabled: true,