The detainee was Nur Sajat Kamaruzzaman, a glamorous, 36-year-old Malaysian cosmetics entrepreneur with a huge social media following.
The Malaysian authorities immediately sought her extradition on charges of insulting Islam, which had been brought against her in January, and which are punishable by up to three years in prison.
Nur Sajat’s offence was to wear a baju kurung, the traditional long-sleeved outfit worn by Malay women, at a private religious ceremony she held in 2018.
Nur Sajat is a transgender woman, and as such she was given refugee status and allowed by Thailand to seek asylum in Australia.
In the eyes of the Malaysian authorities, Nur Sajat is considered male, and under Islamic law, a man cannot dress as a woman.