i am stupid
This commit is contained in:
parent
fbc859dae0
commit
1ce94d25b1
1 changed files with 1 additions and 1 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue