Church pamphlet "Homosexuality" suggests same-sex attracted persons can overcome "homosexual behavior, friends and places" by replacing them with more appropriate friends and activities.
Homosexuality: Second Edition (Salt Lake City: The Church of Jesus Christ of Latter-day Saints, 1981). pp. 6, 9.
2. Social goals
The individual can more easily eliminate all overt homosexual behavior, friends, and places by replacing them with more appropriate friends and activities. Without violating the person's confidence, you could assign a mature member of the ward or stake to tutor him in social skills improvement.
a) Encourage the member to be in appropriate situations with members of the opposite sex, even if he has to force himself. If he is single, he might attend activities for singles with increasing frequency, and in other ways surround himself with good LDS people.
b) Encourage him (if single) to begin dating and gradually increase its frequency. He might discuss dating practices, expectations and fears with a member of the opposite sex or with those assisting him.
...
Many written testimonies have been gathered from individuals who have overcome homosexual problems and found peace and success in dating, marriage, and Church activity.