Fix user timeline old status loading.
This commit is contained in:
parent
a35e9ce3e0
commit
08944a27e9
|
@ -81,4 +81,4 @@ const users = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default users
|
export default users
|
||||||
|
|
|
@ -76,11 +76,11 @@ const fetchStatus = ({id, credentials}) => {
|
||||||
const fetchUserTimeline = ({screenName, since = false, until = false}) => {
|
const fetchUserTimeline = ({screenName, since = false, until = false}) => {
|
||||||
let url = `${USER_TIMELINE_URL}?screen_name=${screenName}`
|
let url = `${USER_TIMELINE_URL}?screen_name=${screenName}`
|
||||||
if (since) {
|
if (since) {
|
||||||
url += `?since_id=${since}`
|
url += `&since_id=${since}`
|
||||||
}
|
}
|
||||||
|
|
||||||
if (until) {
|
if (until) {
|
||||||
url += `?max_id=${until}`
|
url += `&max_id=${until}`
|
||||||
}
|
}
|
||||||
|
|
||||||
return fetch(url).then((data) => data.json())
|
return fetch(url).then((data) => data.json())
|
||||||
|
|
Loading…
Reference in New Issue