Fixed the bug upvote and downvote
Issue that this pull request solves
I have changed the logic like - User can only vote once that is upvote or downvote. Closes: #1004
Brief description of what is fixed or changed
Now users can able to upvote and downvote only once in each comment.
Types of changes
Put an x in the boxes that apply
- [ x] Bugfix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [x ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] Documentation update (Documentation content changed)
- [ ] Other (please describe):
Checklist
Put an x in the boxes that apply
- [x ] My code follows the style guidelines of this project
- [ x] I have performed a self-review of my own code
- [ x] I have commented my code, particularly in hard-to-understand areas
- [x ] I have made corresponding changes to the documentation
- [x ] My changes generate no new warnings
- [x ] My changes does not break the current system and it passes all the current test cases.
Screenshots
Other information
Close this under GSSOC'24
Thank you and congratsπ for opening this pull request!π
Please make sure you have followed our Contributing Guidelines.π We will test out your code and reply in a bit with some pointers and requests.πΏ There may be some errors, but don't worry! We'll work through them with you! πππ If you haven't filled the template out, Please do so!π Feel free to join our Slack Community.π We have different channels for active discussions.β¨ Hope you have a great time there!π