From 3f94b38db5e1ba5fbbd9c3fbdcf5e99915d2bf0d Mon Sep 17 00:00:00 2001 From: dimden <26517362+dimdenGD@users.noreply.github.com> Date: Thu, 29 Aug 2024 03:26:23 +0300 Subject: [PATCH] fix followed by labels --- scripts/apis.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/apis.js b/scripts/apis.js index a4e38358..13fcf808 100644 --- a/scripts/apis.js +++ b/scripts/apis.js @@ -2170,7 +2170,7 @@ const API = { }, getFollowing: (id, cursor) => { return new Promise((resolve, reject) => { - fetch(`https://${location.hostname}/i/api/1.1/friends/list.json?user_id=${id}&count=100${cursor ? `&cursor=${cursor}` : ""}`, { + fetch(`https://${location.hostname}/i/api/1.1/friends/list.json?include_followed_by=1&user_id=${id}&count=100${cursor ? `&cursor=${cursor}` : ""}`, { headers: { "authorization": OLDTWITTER_CONFIG.oauth_key, "x-csrf-token": OLDTWITTER_CONFIG.csrf, @@ -2193,7 +2193,7 @@ const API = { }, getFollowers: (id, cursor, count = 100) => { return new Promise((resolve, reject) => { - fetch(`https://${location.hostname}/i/api/1.1/followers/list.json?user_id=${id}&count=${count}${cursor ? `&cursor=${cursor}` : ""}`, { + fetch(`https://${location.hostname}/i/api/1.1/followers/list.json?include_followed_by=1&user_id=${id}&count=${count}${cursor ? `&cursor=${cursor}` : ""}`, { headers: { "authorization": OLDTWITTER_CONFIG.oauth_key, "x-csrf-token": OLDTWITTER_CONFIG.csrf,