Edit function deletePost

forgot $post_id in function deletePost