Fix user timeline old status loading.

This commit is contained in:
Roger Braun 2017-01-01 19:12:52 +01:00
parent a35e9ce3e0
commit 08944a27e9
2 changed files with 3 additions and 3 deletions

View File

@ -81,4 +81,4 @@ const users = {
}
}
export default users
export default users

View File

@ -76,11 +76,11 @@ const fetchStatus = ({id, credentials}) => {
const fetchUserTimeline = ({screenName, since = false, until = false}) => {
let url = `${USER_TIMELINE_URL}?screen_name=${screenName}`
if (since) {
url += `?since_id=${since}`
url += `&since_id=${since}`
}
if (until) {
url += `?max_id=${until}`
url += `&max_id=${until}`
}
return fetch(url).then((data) => data.json())