clragon / e1547

A sophisticated e621 browser
https://e1547.clynamic.net/
GNU General Public License v3.0
202 stars 15 forks source link

Not Sending Votes #101

Closed noahjgreer closed 1 year ago

noahjgreer commented 1 year ago

When trying to upvote or downvote a post, it will appear to work, but when you reload the app and open the same post, it doesn't seem to register your vote.

noahjgreer commented 1 year ago

https://github.com/clragon/e1547/assets/68797338/32c8f698-2c51-4122-8205-cedbceeeb993

clragon commented 1 year ago

Unfortuantely, votes are not sent over the API by e6, so the app cannot know whether you have upvoted a post or not. When you upvote a post, the app will display the vote for the duration of the search page being open. After that, it no longer has this information. However, if you visit the site in your browser, the vote will be displayed correctly, because they are using html generation directly from the database, which is not available to e1547.

To accommodate for this, votes in the app will always overwrite the previous vote if the app doesnt know if you have voted on a post, so upvoting a post twice will not undo your vote. This is the only thing we can do without actual support from e6. I hope this clears things up for you.