fix user relationship url

Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2023-01-20 22:52:49 +01:00
parent 74b1e66dc3
commit b29f9c4e88
Signed by: sam
GPG Key ID: 4D8B07C18F31ACBD
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,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()