fix "until"

This commit is contained in:
Henry Jameson 2026-06-16 23:29:19 +03:00
commit 82c3fa0bd1

View file

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