Good startup, one thing you need to rectify is the number of times a user can vote a suggestion.
and where do you store user inputs ? did you use a Db for that?
Yea you can store the vote along with the current login token in a MySql DB or use logs. And then run an if statement to check if that token has liked a specific post or just change the state of the button from vote to unvote.