A gay-themed episode of a TV show produced by the Taiwanese Ministry of National Defense got removed from YouTube after homophobes flagged it.

The half-hour episode titled ‘Rainbow’ features a soldier who has broken up with his boyfriend outside of camp.

According to China Post, the show was broadcast nationwide over the Chinese Television System channel last Thursday, with reruns on Friday and Saturday.

The official online version of the episode was posted on YouTube, but it got removed after users flagged it on the basis of it violating community guidelines.

Anti-gay group ‘Alliance of Crying for Hope’ blasted the episode, calling the government ‘shameful’ and ‘needing medical attention.’

‘Imagine what kind of island Taiwan would become if the military became the breeding ground for AIDS. Taiwan’s own self-destruction means that China wouldn’t even need to invade,’ the hate group wrote in its post about the show.

While the video was still on YouTube, majority of the comments left showed support, with some even applauding the ministry’s decision to acknowledge issues gay and lesbian service members face, reports China Post.

In a statement released on Facebook on Friday, the ministry said it was ‘thankful and respectful of diverse societal opinions.’

‘The segment highlights the consolidated workings of counselling and members of the military supporting one another during difficult times,’ the statement added. ‘Combined with support from families, the counselling framework ensures that soldiers can serve with peace of mind.’

Taiwan’s government is currently considering the possibility of legalising same-sex marriage in the country.