Skip to content

Commit

Permalink
fixing gql query for downloading followed user list
Browse files Browse the repository at this point in the history
for some reason prefixing query with a specific comment makes it work
  • Loading branch information
mmozeiko committed Jan 31, 2024
1 parent 2870405 commit 43a748d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TwitchNotify.c
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ static void DownloadFollowedUsers(void)
}

char QueryBytes[1024];
wsprintfA(QueryBytes, "{\"query\":\"{user(login:\\\"%S\\\"){follows(first:%u){edges{node{login}}}}}\"}", username, MAX_USER_COUNT);
wsprintfA(QueryBytes, "{\"query\":\"# query:\\n{user(login:\\\"%S\\\"){follows(first:%u){edges{node{login}}}}}\"}", username, MAX_USER_COUNT);

// queue gql query to background

Expand Down

0 comments on commit 43a748d

Please sign in to comment.