From 2f6586cfb49c8ca3936c1843e129d6060cb0abf7 Mon Sep 17 00:00:00 2001 From: dimden <26517362+dimdenGD@users.noreply.github.com> Date: Tue, 27 Aug 2024 01:31:46 +0300 Subject: [PATCH] fix --- manifest.json | 2 +- scripts/api.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index f938db6..f85ec32 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "name": "Yeah! for Twitter", "description": "Adds a Yeah! button to Twitter", - "version": "1.1.0", + "version": "1.1.1", "manifest_version": 3, "homepage_url": "https://github.com/dimdenGD/YeahTwitter", "permissions": [ diff --git a/scripts/api.js b/scripts/api.js index 31f1e0c..3a4edc8 100644 --- a/scripts/api.js +++ b/scripts/api.js @@ -247,7 +247,7 @@ const API = { return new Promise((resolve, reject) => { fetch(`https://api.${location.hostname}/1.1/users/show.json?${byId ? `user_id=${val}` : `screen_name=${val}`}`, { headers: { - "authorization": publicToken, + "authorization": "Bearer AAAAAAAAAAAAAAAAAAAAAG5LOQEAAAAAbEKsIYYIhrfOQqm4H8u7xcahRkU%3Dz98HKmzbeXdKqBfUDmElcqYl0cmmKY9KdS2UoNIz3Phapgsowi", "x-csrf-token": getCsrf(), "x-twitter-auth-type": "OAuth2Session", "x-twitter-client-language": window.LANGUAGE ? window.LANGUAGE : navigator.language ? navigator.language : "en"