isso-comments / isso

a Disqus alternative
https://isso-comments.de
MIT License
5k stars 442 forks source link

Undo/reverse upvote and downvotes #455

Open theKidOfArcrania opened 6 years ago

theKidOfArcrania commented 6 years ago

It would be nice if a user can be able to undo up-votes/down-votes (maybe by clicking on them again?) Although judging from the codebase, it would require slightly restructuring of the database.

Also this might be a slightly different issue, but maybe the user should be able to have some sort of indication of whether he has already voted or not, or at least whether he can or cannot vote. This could maybe be done by adding another object parameter whenever querying a comment.

ix5 commented 2 years ago

Could be difficult because on the server side, votes are implemented as a Bloom filter store, see comments.py: https://github.com/posativ/isso/blob/25189829c47d3e1259e9ab7440b812edec50a6b2/isso/db/comments.py#L296

BBaoVanC commented 2 years ago

In addition to this, it would be nice to highlight the vote if you've already picked one. Would that at least require less work to implement?