Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

FeedFeedback fixes (#3968)

* Lower seen threshold to 1.5s

* Send feedContext for replies

* Use a simpler and more reliable feedContext fallback

---------

Co-authored-by: Paul Frazee <pfrazee@gmail.com>

authored by

dan
Paul Frazee
and committed by
GitHub
4458b031 97750c4a

+7 -3
+4
src/lib/api/feed-manip.ts
··· 71 71 ?.__source as ReasonFeedSource 72 72 } 73 73 74 + get feedContext() { 75 + return this.items.find(item => item.feedContext)?.feedContext 76 + } 77 + 74 78 containsUri(uri: string) { 75 79 return !!this.items.find(item => item.post.uri === uri) 76 80 }
+1 -1
src/state/queries/post-feed.ts
··· 303 303 i === 0 && slice.source 304 304 ? slice.source 305 305 : item.reason, 306 - feedContext: item.feedContext, 306 + feedContext: item.feedContext || slice.feedContext, 307 307 moderation: moderations[i], 308 308 } 309 309 }
+1 -1
src/view/com/util/List.tsx
··· 90 90 }, 91 91 { 92 92 itemVisiblePercentThreshold: 40, 93 - minimumViewTime: 2e3, 93 + minimumViewTime: 1.5e3, 94 94 }, 95 95 ] 96 96 }, [onItemSeen])
+1 -1
src/view/com/util/List.web.tsx
··· 27 27 } 28 28 export type ListRef = React.MutableRefObject<any | null> // TODO: Better types. 29 29 30 - const ON_ITEM_SEEN_WAIT_DURATION = 2e3 // post must be "seen" 2 seconds before capturing 30 + const ON_ITEM_SEEN_WAIT_DURATION = 1.5e3 // when we consider post to be "seen" 31 31 const ON_ITEM_SEEN_INTERSECTION_OPTS = { 32 32 rootMargin: '-200px 0px -200px 0px', 33 33 } // post must be 200px visible to be "seen"