more user profile work

This commit is contained in:
Henry Jameson 2026-08-11 20:59:18 +03:00
commit 3274a27f9e
3 changed files with 13 additions and 11 deletions

View file

@ -34,7 +34,8 @@ const fetchAndUpdate = ({
const loggedIn = useUsersStore().loggedIn
const args = { timeline: timeline.name, credentials }
args[ARGUMENT_MAP[timeline.name]] = argument
const mainArg = ARGUMENT_MAP[timeline.name]
if (mainArg) args[mainArg] = argument
if (older) {
// When minId = 0 we need to fetch without maxId param
@ -70,8 +71,6 @@ const fetchAndUpdate = ({
.addNewStatuses({ statuses, timestamp })
.filter(Boolean)
console.log(timeline.name, argument, showImmediately, processed.length)
useTimelinesStore().addStatusesToTimeline(
timeline.name,
argument,