Taiwan's top diplomat has ripped into the Chinese Communist Party's official newspaper after it referred to the island nation as part of China in a tweet praising Taipei's passage of a law legalizing same-sex marriage.

In a Twitter post Sunday morning, Taiwan Foreign Minister Joseph Wu blasted the Friday tweet from the official account of the People's Daily newspaper that said "local lawmakers in #Taiwan, China, have legalized same-sex marriage."

"WRONG! The bill was passed by our national parliament & will be signed by the president soon," Wu wrote in response. "Democratic #Taiwan is a country in itself & has nothing to do with authoritarian #China. @PDChina is a commie brainwasher & it sucks. JW."