Add OP thread numbering to feed posts (#11472)

This commit is contained in:
DS Boyce
2026-08-25 11:48:27 -07:00
committed by GitHub
parent 7750882fd0
commit f968c9e721
7 changed files with 122 additions and 13 deletions
@@ -233,6 +233,7 @@ export function useFeedPreviews(
uri: subItem.post.uri,
post: subItem.post,
record: subItem.record,
postNumbering: subItem.postNumbering,
moderation: moderations[i],
parentAuthor: subItem.parentAuthor,
isParentBlocked: subItem.isParentBlocked,
+7 -1
View File
@@ -25,7 +25,11 @@ import {MergeFeedAPI} from '#/lib/api/feed/merge'
import {PostListFeedAPI} from '#/lib/api/feed/posts'
import {type FeedAPI, type ReasonFeedSource} from '#/lib/api/feed/types'
import {aggregateUserInterests} from '#/lib/api/feed/utils'
import {FeedTuner, type FeedTunerFn} from '#/lib/api/feed-manip'
import {
type FeedPostNumbering,
FeedTuner,
type FeedTunerFn,
} from '#/lib/api/feed-manip'
import {DISCOVER_FEED_URI} from '#/lib/constants'
import {logger} from '#/logger'
import {STALE} from '#/state/queries'
@@ -81,6 +85,7 @@ export interface FeedPostSliceItem {
uri: AtUriString
post: app.bsky.feed.defs.PostView
record: app.bsky.feed.post.Main
postNumbering?: FeedPostNumbering
moderation: ModerationDecision
parentAuthor?: app.bsky.actor.defs.ProfileViewBasic
isParentBlocked?: boolean
@@ -340,6 +345,7 @@ export function usePostFeedQuery(
uri: item.post.uri,
post: item.post,
record: item.record,
postNumbering: item.postNumbering,
moderation: moderations[i],
parentAuthor: item.parentAuthor,
isParentBlocked: item.isParentBlocked,