News for hackers. Stuff that matters.
Re:Show HN: Insights.hn – Real-time Hacker News posts and co... by burmecia on Wednesday September 25, 2024 @10:01AM (#41647652)
Thanks, the "Top Comments" is sourced from the "kids" field of the "items" endpoint. As the API docs (https://github.com/HackerNews/API?tab=readme-ov-file#items) says, it is "in ranked display order" so I just used it to sort the top comments.
Re:Show HN: Insights.hn – Real-time Hacker News posts and co... by jimmySixDOF on Wednesday September 25, 2024 @07:30PM (#41652963)
Yah that makes sense and after looking I could not find the API call that pre sorted each thread (it must not have been native algolia or firebase) - and without that the way you are doing it sure beats recursively reconstructing the thread. All the best and I look forward watching any features you add in the future!