refactor vote actions in post and comments