Commit f887411d authored by Aryan Noshirvani's avatar Aryan Noshirvani

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: 's avatarClaude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BCxXmJVvDFJVHTUi4QgNzi
parent 8ff8c429
Pipeline #1005 passed with stage
in 40 minutes and 16 seconds