Allow api to only return unpublished posts