fix weird error in relationships api endpoint
continuous-integration/drone/push Build is passing Details

Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2023-01-20 22:25:17 +01:00
parent f2a07c7231
commit 3ae36e2538
Signed by: sam
GPG Key ID: 4D8B07C18F31ACBD
2 changed files with 3670 additions and 3670 deletions

View File

@ -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()

7338
yarn.lock

File diff suppressed because it is too large Load Diff