Persian and other Islamic literature celebrated male homoerotic love as a form of divine longing – until Western moral codes entered the region.