I think the poster was referring to the global health risks of homosexual behavior, not simply the STD risks to which you appear to be referring. It’s a valid point. Whether one believes these health consequences arise from the societal opprobrium often associated with public identification as same-sex attracted (which would be a difficult claim to make) or from the inherently disordered nature of same-sex relationships, the risks to health and happiness are there and should not be breezily discounted.
On the question raised by the OP, I would suggest that one recognize that there are many deeply-felt forms of attraction that are still inherently wrong, demeaning to the human spirit (of all parties concerned), and should be resisted. One may feel that one may only achieve happiness and fulfillment with a partner who is already married to another person, or to a person who has clearly indicated disinterest, or to someone who is sociopathic, or to someone who is too young, or to someone whose lifestyle choices or self-destructive behavior (drug use, alcoholism, cruelty to children) render them unsuitable, and one may further feel that only such a partner offers the chance for happiness. One should still resist such urges and if no other appropriate partner is available, choose to live a celibate life.
It is a romantic but ultimately juvenile belief, fostered by today’s popular culture, that sexual or simply romantic attraction is an irresistible pull that must be followed for one to achieve fulfillment.