Believe it or not, but it was not the Republic of Turkey that de-criminalised homosexuality in Turkey. Homosexuality was de-criminalised vide Ottoman Sultan's decree in 1858. This was part of the Tanzimat-e-Fermani which were enacted through the Hatt-e-Seriff or the Imperial Edict. This pre-dated de-criminalization in most western countries- revolutionary for its time.
Now here is the interesting part. The Ottoman Sultan was also the Caliph of Islam and God's vicegerent on Earth.
I wonder what Hizbut-tahrir's geniuses have to say about that. After all they make a whole lot of hue and cry about the end of Khilafat in 1924. Not exactly what they make it out to be is it?