i have requests to fetch comment and post data, but i’m struggling to work out how to build a tree from the responses? do i fetch comments with arg parent_id to get a comment’s children, and do so recursively for those comments returned that themselves have comments?
I found a JavaScript function that is written to tree Lemmy comments.
https://github.com/ando818/lemmy-ui-svelte/blob/main/src/lib/components/Comment.svelte
It’s experiment/work in progress project, but they need help too if you find a problem with it. I haven’t tested it extensively yet.