Make post status a param

Instead of making a variable pass the status as a param.