A man who posted a topless photo of his ex-girlfriend on her employer’s Facebook page was sentenced to one year in jail under the state’s revenge porn law, Los Angeles City Attorney Mike Feuer announced today.

“California’s new revenge porn law gives prosecutors a valuable tool to protect victims whose lives and reputations have been upended by a person they once trusted,” Feuer said. “This conviction sends a strong message that this type of malicious behavior will not be tolerated.”

Noe Iniguez, 36, was found guilty under the 2013 statute which prohibits the unauthorized posting of nude or sexual images of an individual with the purpose of causing emotional distress. He was also convicted of two counts of violating restraining orders.

In addition to the jail time, Los Angeles Superior Court Judge David Fields sentenced Iniguez to three years probation and ordered him to attend domestic violence counseling sessions and to stay away from the victim.

Iniguez was the first defendant to be convicted in a revenge porn case filed by Feuer’s office.

Iniguez and the victim split up in 2011, after four years together.

After receiving several harassing text messages from Iniguez following the breakup, the victim obtained a restraining order.

Last December, Iniguez used an alias to post derogatory comments about her on her employer’s Facebook page. In March, he posted the topless photo, along with comments calling her a “drunk” and a “slut” and saying she should be fired.