Fix re-publishing posts.