Remove trailing slash when getting relationships

It's not exactly correct and calckey removes query string in redirects :(
This commit is contained in:
fruye 2023-04-26 22:05:09 +02:00
parent f40a14f77e
commit 31f3fd8846
1 changed files with 1 additions and 1 deletions

View File

@ -344,7 +344,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}`
return fetch(url, { headers: authHeaders(credentials) })
.then((response) => {
return new Promise((resolve, reject) => response.json()