diff --git a/unfollow_all.js b/unfollow_all.js index cc3c9f8..b76e7f1 100644 --- a/unfollow_all.js +++ b/unfollow_all.js @@ -8,7 +8,7 @@ function getCookie(name) { async function downloadUser(user) { for (let i = 0; ; i++) { - let fetchReq = await fetch(`https://api.scratch.mit.edu/users/${user}/followers/?limit=40&offset=${i * 40}`); + let fetchReq = await fetch(`https://api.scratch.mit.edu/users/${user}/following/?limit=40&offset=${i * 40}`); let fetchJson = await fetchReq.json(); if (fetchJson.length < 1) break; tree = [...tree, ...fetchJson];