When feelings of attraction to the same sex was regarded as a mental illness back then, lesbians and gays were subjected to literally shocking treatment..