Make remix tree fetching actually recursive
GET /social/posts/{id}/tree only ever fetched one level of children -
a remix of a remix wouldn't show up at all. Rewrote it as a proper
recursive walk (_build_remix_tree), each node now nesting its own
children the same way, all the way down. Depth-capped at 50 as a
guard against runaway recursion on pathological/corrupted data, well
beyond anything a real remix-of-a-remix chain would reach.
Co-Authored-By:
Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BCxXmJVvDFJVHTUi4QgNzi
Showing
Please
register
or
sign in
to comment