Add correct params for getPosts