From 42a10b9198d3e3c28847f034c0fe0df4f9a4e129 Mon Sep 17 00:00:00 2001 From: User123698745 Date: Wed, 17 Jul 2024 06:26:44 +0200 Subject: [PATCH] fix(docs): update outdated twitter configuration documentation (#16185) * update outdated twitter configuration documentation (TWITTER_COOKIE was replaced by TWITTER_AUTH_TOKEN) * update features.requireConfig on twitter routes (TWITTER_COOKIE was replaced by TWITTER_AUTH_TOKEN) --- lib/routes/twitter/home.ts | 2 +- lib/routes/twitter/keyword.ts | 2 +- lib/routes/twitter/likes.ts | 2 +- lib/routes/twitter/list.ts | 2 +- lib/routes/twitter/media.ts | 2 +- lib/routes/twitter/namespace.ts | 4 ++-- lib/routes/twitter/user.ts | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/routes/twitter/home.ts b/lib/routes/twitter/home.ts index f666a2e19..523bb709d 100644 --- a/lib/routes/twitter/home.ts +++ b/lib/routes/twitter/home.ts @@ -17,7 +17,7 @@ export const route: Route = { description: 'Please see above for details.', }, { - name: 'TWITTER_COOKIE', + name: 'TWITTER_AUTH_TOKEN', description: 'Please see above for details.', }, ], diff --git a/lib/routes/twitter/keyword.ts b/lib/routes/twitter/keyword.ts index d45898987..0cf2c74ab 100644 --- a/lib/routes/twitter/keyword.ts +++ b/lib/routes/twitter/keyword.ts @@ -18,7 +18,7 @@ export const route: Route = { description: 'Please see above for details.', }, { - name: 'TWITTER_COOKIE', + name: 'TWITTER_AUTH_TOKEN', description: 'Please see above for details.', }, ], diff --git a/lib/routes/twitter/likes.ts b/lib/routes/twitter/likes.ts index b14677d39..8a5d7890b 100644 --- a/lib/routes/twitter/likes.ts +++ b/lib/routes/twitter/likes.ts @@ -10,7 +10,7 @@ export const route: Route = { features: { requireConfig: [ { - name: 'TWITTER_COOKIE', + name: 'TWITTER_AUTH_TOKEN', description: 'Please see above for details.', }, ], diff --git a/lib/routes/twitter/list.ts b/lib/routes/twitter/list.ts index af1250c05..abc668c8a 100644 --- a/lib/routes/twitter/list.ts +++ b/lib/routes/twitter/list.ts @@ -18,7 +18,7 @@ export const route: Route = { description: 'Please see above for details.', }, { - name: 'TWITTER_COOKIE', + name: 'TWITTER_AUTH_TOKEN', description: 'Please see above for details.', }, ], diff --git a/lib/routes/twitter/media.ts b/lib/routes/twitter/media.ts index 979160dcf..d31180e15 100644 --- a/lib/routes/twitter/media.ts +++ b/lib/routes/twitter/media.ts @@ -18,7 +18,7 @@ export const route: Route = { description: 'Please see above for details.', }, { - name: 'TWITTER_COOKIE', + name: 'TWITTER_AUTH_TOKEN', description: 'Please see above for details.', }, ], diff --git a/lib/routes/twitter/namespace.ts b/lib/routes/twitter/namespace.ts index 6ef292d92..e30ec149a 100644 --- a/lib/routes/twitter/namespace.ts +++ b/lib/routes/twitter/namespace.ts @@ -40,8 +40,8 @@ generates Currently supports two authentication methods: -- Using \`TWITTER_COOKIE\` (recommended): Configure the cookies of logged-in Twitter Web, at least including the fields auth_token and ct0. RSSHub will use this information to directly access Twitter's web API to obtain data. +- Using \`TWITTER_AUTH_TOKEN\` (recommended): Configure a comma-separated list of \`auth_token\` cookies of logged-in Twitter Web. RSSHub will use this information to directly access Twitter's web API to obtain data. -- Using \`TWITTER_USERNAME\` \`TWITTER_PASSWORD\` and \`TWITTER_AUTHENTICATION_SECRET\`: Configure the Twitter username and password. RSSHub will use this information to log in to Twitter and obtain data using the mobile API. Please note that if you have not logged in with the current IP address before, it is easy to trigger Twitter's risk control mechanism. +- Using \`TWITTER_USERNAME\` \`TWITTER_PASSWORD\` and \`TWITTER_AUTHENTICATION_SECRET\`: Configure a comma-separated list of Twitter username and password. RSSHub will use this information to log in to Twitter and obtain data using the mobile API. Please note that if you have not logged in with the current IP address before, it is easy to trigger Twitter's risk control mechanism. `, }; diff --git a/lib/routes/twitter/user.ts b/lib/routes/twitter/user.ts index 7b3574399..038220a25 100644 --- a/lib/routes/twitter/user.ts +++ b/lib/routes/twitter/user.ts @@ -27,7 +27,7 @@ export const route: Route = { optional: true, }, { - name: 'TWITTER_COOKIE', + name: 'TWITTER_AUTH_TOKEN', description: 'Please see above for details.', }, ],