Quoted By:
I give my two cents on that matter.
Homosexuality was a double edged sword in Iran. There are hints that same sex intercourse was apparent in mythology (Moon goddess Mah keeping the seed of the primordial cow), but probably due fertile festivals.
While the Zoroastrian cleric despised homosexually as an act of evil (Because it doesn't bring birth to children), homosexuality was pretty much apparent through the import of different cultural traditions (See Herodot).
Through the Hellenism in Parthian rule, homosexuality became most likely cultural tradition, and the tolerance span was even bigger than the Achamenids. It probably broke down with Sassanid times as it turned into a Zoroastrian theocraty.
Only during the Islamic period there are records from practising homosexuality, but it was more pedophilia done by the Mullahs and the foreign Arabian-Turkish rulership onto (male) slaves. There are exceptions however, such as Hafez who is the male Sappho of poetry.
But even after that, homosexuality was persecuted on horrific death penalities. Islam is most repressive against it. As Sura 4, vers 15 states that woman need to be stoned for 'Chasity' (sodomy?) while male homosexuals can get away as vers 16 states if they 'repent'. The Shariah even radicalizes it, as homosexual practise of any kind gets death penalty.