added boolean flag to control whether a post can be published to live