Merge branch 'develop' into feature/pleroma-be

This commit is contained in:
Roger Braun 2017-06-12 17:35:44 +02:00
commit 05ff878467
1 changed files with 3 additions and 1 deletions

View File

@ -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())