Added "type" to the post object