From adba19584b975818f2b94d163ec8a8bd41479e8d Mon Sep 17 00:00:00 2001 From: wukko Date: Tue, 25 Oct 2022 23:02:49 +0600 Subject: [PATCH] replaced twitter bearer token with one that allows multi media stuff --- src/modules/services/twitter.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/services/twitter.js b/src/modules/services/twitter.js index a74cefdf..e9ae0bef 100644 --- a/src/modules/services/twitter.js +++ b/src/modules/services/twitter.js @@ -11,7 +11,7 @@ export default async function(obj) { try { let _headers = { "User-Agent": genericUserAgent, - "Authorization": "Bearer AAAAAAAAAAAAAAAAAAAAAPYXBAAAAAAACLXUNDekMxqa8h%2F40K4moUkGsoc%3DTYfbDKbT3jJPCEVnMYqilB28NHfOPqkca3qaAxGfsyKCs0wRbw", + "Authorization": "Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA", "Host": "api.twitter.com", "Content-Type": "application/json", "Content-Length": 0 @@ -26,7 +26,6 @@ export default async function(obj) { `${apiURL}/statuses/show/${obj.id}.json?tweet_mode=extended&include_user_entities=0&trim_user=1&include_entities=0&cards_platform=Web-12&include_cards=1`, { headers: _headers } ); - req_status = JSON.parse(req_status.body); if (req_status["extended_entities"] && req_status["extended_entities"]["media"]) { let single, multiple = [], media = req_status["extended_entities"]["media"];