atproto
atproto copied to clipboard
getPostThread does not respect depth parameter if depth is greater than 10
Describe the bug
getPostThread does not respect depth parameter if depth is greater than 10
To Reproduce
Steps to reproduce the behavior:
const AGENT = new Agent("https://public.api.bsky.app");
const response = await AGENT.getPostThread({
uri,
depth,
parentHeight: 0,
});
Expected behavior
I was led to believe that the max depth could be up to 1000: https://docs.bsky.app/docs/api/app-bsky-feed-get-post-thread#request
Additional context
Possibly caused by 64d9310ae9e63b543bd8473ac4bd34b72dd691f1