added a visibility argument for the creation of posts