Refactored post repository to filter by type and status. Post controller index method updated to pass type and status to repo.