only publish posts if the post isn't published yet. closes #291