fix weird error in relationships api endpoint
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
parent
f2a07c7231
commit
3ae36e2538
2 changed files with 3670 additions and 3670 deletions
|
@ -349,7 +349,7 @@ const fetchUser = ({ id, credentials }) => {
|
|||
}
|
||||
|
||||
const fetchUserRelationship = ({ id, credentials }) => {
|
||||
let url = `${MASTODON_USER_RELATIONSHIPS_URL}/?id=${id}`
|
||||
let url = `${MASTODON_USER_RELATIONSHIPS_URL}/?id=${id?.id ?? id}`
|
||||
return fetch(url, { headers: authHeaders(credentials) })
|
||||
.then((response) => {
|
||||
return new Promise((resolve, reject) => response.json()
|
||||
|
|
Loading…
Reference in a new issue