add published flag and published_at for posts