Hacker News new | ask | show | jobs
by hidro 3568 days ago
I plan to implement downvoting but I'm not sure of the logic involved (I don't have enough karma to test it myself). Probably I'll add it to a beta channel and let users help test it.

Performance can be laggy and is something I'm trying to improve.

3 comments

Up/down voting works the same. It's just the "how=" parameter that changes from "up" to "down".

There's also a "/flag" call with only "id" and "auth" to flag comments / articles. (with "un=t" it unflags) The link says "flag" or "unflag".

It's also worth noting that some comments cannot be downvoted.
Cheers, I just donated you one.
How do you handle up voting, does the api allow it?
No, I have to chain requests, using cookies.