Skip to content

Commit

Permalink
fix followed by labels
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdenGD committed Aug 29, 2024
1 parent 6bf7367 commit 3f94b38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/apis.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 3f94b38

Please sign in to comment.