Update before_save hook in Post model.

before_save shouldn't update the published_at field unless the published field was changed (to true).