Add upvote hook

adhere to similar project style