Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix Discover posts showing up in Following with no explanation (#7500)

authored by

dan and committed by
GitHub
49b19442 99e16f45

+14 -10
+14 -10
src/view/com/posts/PostFeed.tsx
··· 75 75 key: string 76 76 } 77 77 | { 78 - type: 'slice' // TODO can we remove? 78 + type: 'fallbackMarker' 79 79 key: string 80 - slice: FeedPostSlice 81 80 } 82 81 | { 83 82 type: 'sliceItem' ··· 425 424 } 426 425 } 427 426 428 - if (slice.isIncompleteThread && slice.items.length >= 3) { 427 + if (slice.isFallbackMarker) { 428 + arr.push({ 429 + type: 'fallbackMarker', 430 + key: 431 + 'sliceFallbackMarker-' + sliceIndex + '-' + lastFetchedAt, 432 + }) 433 + } else if (slice.isIncompleteThread && slice.items.length >= 3) { 429 434 const beforeLast = slice.items.length - 2 430 435 const last = slice.items.length - 1 431 436 arr.push({ ··· 599 604 return <TrendingInterstitial /> 600 605 } else if (row.type === 'interstitialTrendingVideos') { 601 606 return <TrendingVideosInterstitial /> 607 + } else if (row.type === 'fallbackMarker') { 608 + // HACK 609 + // tell the user we fell back to discover 610 + // see home.ts (feed api) for more info 611 + // -prf 612 + return <DiscoverFallbackHeader /> 602 613 } else if (row.type === 'sliceItem') { 603 614 const slice = row.slice 604 - if (slice.isFallbackMarker) { 605 - // HACK 606 - // tell the user we fell back to discover 607 - // see home.ts (feed api) for more info 608 - // -prf 609 - return <DiscoverFallbackHeader /> 610 - } 611 615 const indexInSlice = row.indexInSlice 612 616 const item = slice.items[indexInSlice] 613 617 return (