Beijing (CNN) Taiwan has lashed out at China's state media for attempting to take credit for the island's historic decision to legalize same-sex marriage.

On Friday, Taiwan's legislators passed a bill making same-sex marriage a reality, the first place in Asia to give LGBT couples many of the same rights as their heterosexual peers.

LGBT activists were overjoyed at the news, but some of the most unlikely praise came from the Chinese Communist Party's mouthpiece.

"Local lawmakers in Taiwan, China, have legalized same-sex marriage in a first for Asia," tweeted the People's Daily newspaper on Friday, along with a rainbow color-infused animated image that says "love is love" underneath.

WRONG! The bill was passed by our national parliament & will be signed by the president soon. Democratic #Taiwan is a country in itself & has nothing to do with authoritarian #China. @PDChina is a commie brainwasher & it sucks. JW https://t.co/eHKzXdzxoT — 外交部 Ministry of Foreign Affairs, ROC (Taiwan) 🇹🇼 (@MOFA_Taiwan) May 19, 2019

"Wrong!" Joseph Wu, Taiwan's foreign minister, shot back on his department's official Twitter account Sunday. "The bill was passed by our national parliament and will be signed by the president soon. Democratic Taiwan is a country in itself and has nothing to do with authoritarian China."

Read More