Gandhi thought black people were subhuman

Re: Gandhi thought black people were subhuman

Is this one article to be taken as the truth and an indictment of Gandhi?

Even if true, would he be any more of a racist than those (including prophets) who owned black slaves throughout history?