add published property to posts