update a post.