set post id to post._id