Something went wrong. Try again.
Bluesky app fork with some witchin' additions 💫
Something went wrong. Try again.
1.6 kB · 46 lines
TypeScript
at main
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647// eslint-disable-next-line @typescript-eslint/no-unused-varsimport {type AppBskyUnspeccedGetPostThreadV2} from '@atproto/api'
/** * See the `below` param on {@link AppBskyUnspeccedGetPostThreadV2.QueryParams} */export const LINEAR_VIEW_BELOW = 10
/** * See the `branchingFactor` param on {@link AppBskyUnspeccedGetPostThreadV2.QueryParams} */export const LINEAR_VIEW_BF = 1
/** * See the `below` param on {@link AppBskyUnspeccedGetPostThreadV2.QueryParams} */export const TREE_VIEW_BELOW = 4
/** * See the `branchingFactor` param on {@link AppBskyUnspeccedGetPostThreadV2.QueryParams} */export const TREE_VIEW_BF = undefined
/** * See the `below` param on {@link AppBskyUnspeccedGetPostThreadV2.QueryParams} */export const TREE_VIEW_BELOW_DESKTOP = 6
/** * Reader view anchors at the thread root and reads the OP chain straight * down, so it requests the maximum depth the endpoint allows. See the * `below` param on {@link AppBskyUnspeccedGetPostThreadV2.QueryParams} * * Reader view fetches with branchingFactor 1 ({@link LINEAR_VIEW_BF}); the * seam transform relies on that, see `createSeam` in PostThread/reader.ts. */export const READER_VIEW_BELOW = 20
/** * Upper bound on continuation fetches when extending an OP self-thread past * the server's depth cap, i.e. at most `(SELF_THREAD_CHAIN_MAX_FETCHES + 1) * * <server depth cap>` chain posts load per view. The appview currently * serves at most 10 levels per request regardless of the requested `below`. * See `extendSelfThreadChain`. */export const SELF_THREAD_CHAIN_MAX_FETCHES = 10