Merge branch 'develop' into feature/pleroma-be
This commit is contained in:
commit
05ff878467
|
@ -27,6 +27,8 @@ import { each } from 'lodash'
|
|||
|
||||
const oldfetch = window.fetch
|
||||
|
||||
import { map } from 'lodash'
|
||||
|
||||
let fetch = (url, options) => {
|
||||
const baseUrl = ''
|
||||
const fullUrl = baseUrl + url
|
||||
|
@ -178,7 +180,7 @@ const fetchTimeline = ({timeline, credentials, since = false, until = false, use
|
|||
params.push(['user_id', userId])
|
||||
}
|
||||
|
||||
const queryString = new URLSearchParams(params).toString()
|
||||
const queryString = map(params, (param) => `${param[0]}=${param[1]}`).join('&')
|
||||
url += `?${queryString}`
|
||||
|
||||
return fetch(url, { headers: authHeaders(credentials) }).then((data) => data.json())
|
||||
|
|
Loading…
Reference in New Issue