Commit dfc2bff
authored
fix(people): correct friends list API endpoint for target users (#103)
The `get_friends_by_xuid` method was incorrectly routing to
`/users/me/people/xuids({xuid})/` which only checks the relationship
between the authenticated user and the target, returning empty data (0
friends) if they aren't mutual friends.
This fixes the URL path to `/users/xuid({xuid})/people/friends/` as in
Xbox Android app, correctly utilizing Xbox Live Contract v7 to fetch a
target user's friends list.1 parent 277d643 commit dfc2bff
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
| |||
85 | 88 | | |
86 | 89 | | |
87 | 90 | | |
88 | | - | |
| 91 | + | |
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
| |||
0 commit comments