Something went wrong. Try again.
Bluesky app fork with some witchin' additions 💫 witchsky.app
bluesky fork client
Something went wrong. Try again.
1.5 kB · 45 lines
TypeScript
at prod
12345678910111213141516171819202122232425262728293031323334353637383940414243444546// eslint-disable-next-line @typescript-eslint/no-unused-vars
/** * See the `below` param on {@link app.bsky.unspecced.getPostThreadV2.$Params} */export const LINEAR_VIEW_BELOW = 10
/** * See the `branchingFactor` param on {@link app.bsky.unspecced.getPostThreadV2.$Params} */export const LINEAR_VIEW_BF = 1
/** * See the `below` param on {@link app.bsky.unspecced.getPostThreadV2.$Params} */export const TREE_VIEW_BELOW = 4
/** * See the `branchingFactor` param on {@link app.bsky.unspecced.getPostThreadV2.$Params} */export const TREE_VIEW_BF = undefined
/** * See the `below` param on {@link app.bsky.unspecced.getPostThreadV2.$Params} */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