Hello,
I’m trying to get the number of likes for a single post via the API, but can’t seem to find it…
I see a like_count for the entire topic, but can’t seem to find the individual like count for each post in either /t/123.json or /posts/222.json.
I noticed that I can get a list of users who liked a post via /post_action_users.json and add them up manually, but what is the recommended way to to get the “like count” for an individual post?
Thank you for the feedback. Ya, looking at the api docs there isn’t any info on fetching likes, just on creating them. I’ll start with improving the api docs in that department.
Definitely love you for that.
If I can help with this (is it human written?!) let me know
But I suspect you use something like PHPdoc, just for Ruby or whatever it is that Discourse is written in?
I have no experience in that language so if it is programmatic I cannot help with it (yet)