Repository navigation
Commit 0d3b795
committed
Fix followed games: send the query document instead of a persisted query
_get_followed() used a hardcoded persisted-query sha256 hash. Twitch rotates
those hashes, and this one is no longer known, so the call only ever answers
with PersistedQueryNotFound and "followed games" comes up empty.
Send the full query document instead. The batched request and response shape
stay the same, and so do the returned fields (id, name, displayName,
boxArtURL, viewersCount), so callers need no change.
Verified against gql.twitch.tv with a user token: the persisted variant
returns PERSISTED_QUERY_NOT_FOUND, the query document returns the nodes.1 parent 5f72ebc commit 0d3b795
1 file changed
Lines changed: 5 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
56 | 58 | | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
| |||
0 commit comments