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?

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

    it doesn’t appear that comments returned are sorted or grouped together in any way by default

    Have you tried sort parameter?

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

      Yes, I still end up with orphaned comments that have no parent in the results regardless of the sort method

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

        Can you share the reproducible requests/URLs?