Modified vote and post model to make new post work.