Communists focus mainly on the working class not because they don't care about queer liberation (so many leftcoms are trans to the point that its become an injoke), but because of historical materialism, the concept that it's the mode of production and advancements within it that control our behaviors, and not "independent ideas". The current mode of production that is capitalism depends on the nuclear family structure for reproduction, and queers go against that so the ruling class propagates anti-queer ideas as a result.
Stalinoid and Maoist revolutions (China, Vietnam, other AES countries, etc) weren't proletarian and instead were explicitly class collaborationist and anti-imperialist (seen in Vietnam's DOI, Mao's On New Democracy, etc) often wearing red only to get protection from USSR which has been completely subsumed by the counter-revolution long ago. They would ban gay rights or heavily promote reproduction for expansion of the workforce for national interests precisely because their goal wasn't to get rid of commodity production or go internationalist (Marxist position), but expansion of capital, be it state owned or otherwise which is the common interest of every bourgeois state.
The only revolution that didn't result in this was October revolution in Russia, they were almost a hundred years ahead of it's time in regards to things like women's and gay rights, and mind you it was still far away from actually reaching communism which they never did due to the failure of going international and subsequent stalinist counter-revolution.
Sorry for a wall of text on this meme, but ts is nonsensical anarchist slander ๐