Hi @mcmdev -- I made something that does this:
Let me know if you run into issues with this plugin, as it is quite old.
How can I get all of the users who upvote/downvote a post? How can I add those voters data (
pids) to the json response of this API endpoint
Please help. Thank you.
This is similar to https://community.nodebb.org/topic/16858/how-to-add-main-post-content-of-topic-to-topic-lists, you can use the same hook but this time add the upvoters/downvoters of the mainPid.
You can see the code that loads voter info here https://github.com/NodeBB/NodeBB/blob/master/src/socket.io/posts/votes.js#L10-L36