This is what passes for “community relations” in Mayor de Blasio’s New York.

A foul-mouthed former campaign aide to the mayor who was previously scolded for her Twitter rants against the NYPD and NAACP was quietly hired as the mayor’s new co-director of community affairs in Brooklyn.

Kicy Motley was spotted by The Post last week cheering on de Blasio at the mayor’s first bill-signing ceremony in Brooklyn.

Motley, 28, a volunteer in de Blasio’s campaign last year, was caught going on a Twitter tear.

- She slammed the NAACP in January 2013 for siding with drink companies against Bloomberg’s soda ban: “@NAACP aka corporate d–k riders. Standing with soda makers for a few bucks.”

- In February 2013, she linked to an article highlighting Bloomberg’s pro-gun-control efforts and wrote, “Hey rest of #America, welcome to Bloomberg using his #money to mess up your sh-t.”

- Motley also used Twitter to cheer crazed ex-LAPD cop Chris Dorner, who went on a wild shooting spree across Southern California in February 2013 after claiming he was fired because of racism.

“There’s a part of me rooting for #Dorner. This racist, imperialist country gets the best of people sometimes. It makes some snap. #lapd,” she tweeted several days before Dorner was killed by cops during a standoff.

After The Post exposed the tweets, Motley pulled down her Twitter page and apologized, but stayed on with the campaign.

“These tweets do not reflect my values, and I regret posting them in haste. I apologize for any pain they may have caused,” she said in a prepared statement released by the campaign at the time.

Last month, the Capital New York Web site reported that de Blasio had cleaned out Bloomberg’s Community Affairs Unit and replaced its members with his loyalists, including Motley.

Community directors spend most of their time out in the field working with elected officials, community boards, civic associations, community-based organizations and tenants associations, the mayor’s office said.

“Kicy was hired for this assignment because of her deep knowledge of Brooklyn and her commitment to the citizens of this city. She is well versed in constituent casework and navigating city agencies, which is part of her duties,” de Blasio spokesman Phil Walzak told The Post.