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?

  • RoundSparrow
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    i think i’d missed the All type_.

    I ran into the same problem with the API. If the community isn’t local the API call won’t return any comments (even if local users created those comments). https://lemmy.ml/post/1536549

    Anyway, good you found out type_ param.