That's a very ugly sentence.
Its is not "the homeless" who made the city uninviting. That is like saying "the sick made this hospital uninviting".
Homeless people need help. They are people in distress.
Those who made the city uninviting are self-centered voters, who apparently can't give two shits about the situation, and keep voting people into power who don't do anything to help those who need help.