Remove trailing slash when getting relationships
It's not exactly correct and calckey removes query string in redirects :(
This commit is contained in:
parent
f40a14f77e
commit
31f3fd8846
|
@ -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()
|
||||
|
|
Reference in New Issue