Update `published` when publishing a post
When promoting a post from draft
to published
, we should make sure
to update the published
property, so we don't have to manually do it.
This requires adding logic when replace
ing a post-status
, which
currently is a bit hacky.