A cop in Pennsylvania is out of two jobs after posting a picture of herself in uniform to social media and using a racial slur, officials said.

McKeesport Mayor Michael Cherepko said the white officer, identified in local reports as Melissa Adamson, was a recently hired part-time officer who was training as a probationary employee. The image, which was posted on Snapchat and made its way to other platforms, showed Adamson taking a selfie in uniform with the caption: “I’m the law today n—a.”

“This post displays a degree of conduct and character that is far different from what I would expect from an officer in this city,” Cherepko posted on Facebook.

“It is absolutely unacceptable. Without hesitation, my office and the police chief’s office immediately concluded that this officer’s action will not be tolerated in the City of McKeesport. She had been relieved of her duties, and her employment has been terminated.”

‘It is absolutely unacceptable.’ - Mayor Michael Cherepko

Adamson also worked as a part-time police officer in Versailles, Pa. She resigned from that post late Tuesday, Police Chief Charles Roka told WTAE.com.

Adamson, for her part, told the website she’s “not a racist” and apologized to anyone she offended.

“Everyone knows that I don’t have a racist bone in my body,” she told WTAE.com. “And people who don’t know me, I can understand why it was misconstrued to where it looks racist. But like I said, everyone who knows me knows I’m not racist.”

Adamson said posting the image was a “stupid mistake” regarding of her intentions.

“I’m sorry for who I did offend,” she continued. “It was not my intention. I can’t express how sorry I am for how I made you feel — emotionally, physically. Again, it wasn’t my intention.”