Skip to content
Snippets Groups Projects
Commit 48a6d2e9 authored by lain's avatar lain
Browse files

Don't use too advanced features.

parent bbb9a9c9
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,8 @@ const QVITTER_USER_TIMELINE_URL = '/api/qvitter/statuses/user_timeline.json'
const oldfetch = window.fetch
import { map } from 'lodash'
let fetch = (url, options) => {
const baseUrl = ''
const fullUrl = baseUrl + url
......@@ -124,7 +126,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())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment