e621ng / e621ng

e621.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to know if the logged in user has voted to a post through the API?

XiaoPanPanKevinPan opened this issue · comments

As the title.

By sending a GET request to /posts/${id}.json, we can know whether or not the authenticated user has favorited the post with is_favorited. I expected a similar field to exist for voting, but I cannot find that.

Did I miss something, or is there another API for this? 🤔

it isn't possible to figure out that data without voting on the post

That's sad. 🥲
Is there any reason not to implement that? Users can see whether they have voted before by accessing /posts/${id}, while programs can parse the HTML file to know that, too. But if the API provides this feature, it sure will bring us convenience!

Also, thanks for your information!

See also topic #34507