fix: ensure first timeline is not ROUTE_VIEW_ALL when available

This commit is contained in:
DIYgod 2025-11-18 09:17:07 +08:00
parent 576c92acf6
commit 1e282048e1
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ export const loader = () => {
hasNotificationsSubscription,
})
const firstTimeline = visible[0] ?? ROUTE_VIEW_ALL
const firstTimeline = visible.find((id) => id !== ROUTE_VIEW_ALL) ?? ROUTE_VIEW_ALL
return redirect(`/timeline/${firstTimeline}/${ROUTE_FEED_PENDING}/${ROUTE_ENTRY_PENDING}`)
}