It was actually Plato, not Socrates, (who died 19 years or so before this dialog was written).
Plato was saying nothing about gays. His characters (Socrates and Callicles) were debating the nature of justice, and at that particular point, were examining hedonism. Plato has Socrates paint Callicles into a corner regarding the rewards of being an "ideal man", if justice was not to be considered. Callicles is forced to propose that a man's natural appetites were the best reward and governor of behavior, and then Plato has Socrates pounce on this idea by asking if it is not possible that pursuit of something desirable might not result in misery and degradation, even if the desirable thing is obtained. To illustrate this sharply, Plato uses the plight of the "catamite", (who were the "call girls" of ancient Athens...that is to say they were prostitutes, used by wealthy, usually married men).
Plato could have alternatively used wealth itself, the pursuit of which we often see in our own time leading to immoral behavior and a sense of emptiness...a poverty of the soul. THAT is what Plato is saying. He was NOT saying anything "about gays".