Fix api query that list posts