add 'publish' flag to posts