fix "until"
This commit is contained in:
parent
d13c1bef9d
commit
82c3fa0bd1
1 changed files with 7 additions and 7 deletions
|
|
@ -40,7 +40,7 @@ const fetchAndUpdate = ({
|
||||||
statusId = false,
|
statusId = false,
|
||||||
bookmarkFolderId = false,
|
bookmarkFolderId = false,
|
||||||
tag = false,
|
tag = false,
|
||||||
until,
|
maxId,
|
||||||
sinceId,
|
sinceId,
|
||||||
}) => {
|
}) => {
|
||||||
const args = { timeline, credentials }
|
const args = { timeline, credentials }
|
||||||
|
|
@ -51,7 +51,7 @@ const fetchAndUpdate = ({
|
||||||
const loggedIn = !!rootState.users.currentUser
|
const loggedIn = !!rootState.users.currentUser
|
||||||
|
|
||||||
if (older) {
|
if (older) {
|
||||||
args.until = until || timelineData.minId
|
args.maxId = maxId || timelineData.minId
|
||||||
} else {
|
} else {
|
||||||
if (sinceId === undefined) {
|
if (sinceId === undefined) {
|
||||||
args.sinceId = timelineData.maxId
|
args.sinceId = timelineData.maxId
|
||||||
|
|
@ -119,11 +119,11 @@ const startFetching = ({
|
||||||
timeline = 'friends',
|
timeline = 'friends',
|
||||||
credentials,
|
credentials,
|
||||||
store,
|
store,
|
||||||
userId = false,
|
userId,
|
||||||
listId = false,
|
listId,
|
||||||
statusId = false,
|
statusId,
|
||||||
bookmarkFolderId = false,
|
bookmarkFolderId,
|
||||||
tag = false,
|
tag,
|
||||||
}) => {
|
}) => {
|
||||||
const rootState = store.rootState || store.state
|
const rootState = store.rootState || store.state
|
||||||
const timelineData = rootState.statuses.timelines[camelCase(timeline)]
|
const timelineData = rootState.statuses.timelines[camelCase(timeline)]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue