port relationship change to pleroma-fe
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2023-01-20 22:37:06 +01:00
parent eaa287d39d
commit dba3cbdc54
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD

View file

@ -375,7 +375,7 @@ const fetchUserByName = ({ name, credentials }) => {
}
const fetchUserRelationship = ({ id, credentials }) => {
const url = `${MASTODON_USER_RELATIONSHIPS_URL}/?id=${id}`
const url = `${MASTODON_USER_RELATIONSHIPS_URL}/?id=${id?.id ?? id}`
return fetch(url, { headers: authHeaders(credentials) })
.then((response) => {
return new Promise((resolve, reject) => response.json()