4 comments

[ 3.8 ms ] story [ 16.6 ms ] thread
This is useful, should be more upvoted.
Clickable repo: https://github.com/holygeek/fetchpost

It doesn't look like you're using the HN API. Perhaps you should? Here's a library from a quick google: https://github.com/cryptix/gohn

> It doesn't look like you're using the HN API.

Sorry I don't get what you mean. The comments are fetched by making REST requests to https://hacker-news.firebaseio.com/v0/, so it is using the HN API isn't it?

Ah, I missed that, sorry. D'uh, you actually have a global right up top called HN_API_URL.