removed unused code from models/post.js