When publisted or updated changes, update post.