schafezp / karmabot

A telegram bot designed for group chats to allow users to upvote and downvote content similar to reddit.
https://schafezp.github.io/karmabot/
MIT License
6 stars 1 forks source link

Allow user to change their vote for a reply #16

Closed schafezp closed 6 years ago

schafezp commented 6 years ago

Describe the bug If a user "-1"s a message and then attempts to "+1" a message, the karma stays as if a "-1" was given

To Reproduce Steps to reproduce the behavior: Given two users A and B where A posts a message M1 and then B replies "+1" to M1, A gets 1 karma. If B then replies "-1" to M1, A will still have the +1 karma.

Expected behavior Replying to the same message with a different karma vote should override the previous vote.