A Los Angeles man who posted nude photos of his ex-girlfriend on employer’s Facebook page became the first man convicted under California’s revenge porn law. Noe Iniguez, 36, was sentenced to a year in prison on Monday.

Iniguez was found guilty of three criminal charges, two of which related to a restraining order and a third for violating the revenge porn statute, reports Time. He also received 36 months' probation.

City Attorney Mike Feuer said that there was evidence that Iniguez used an alias to allegedly post insulting comments on the ex-girlfriend’s employer’s Facebook page in December 2013. Then in March 2014, he began allegedly posting topless photos of her on the same Facebook page, calling her a “drunk” and “slut.” He also called on thee company to fire her.

The victim previously received a restraining order against Iniguez in November 2011 following harassing text messages. They were together for four years.

“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 in a statement. “This conviction sends a strong message that this type of malicious behavior will not be tolerated.”

California’s revenge porn law was signed in October 2013, reports the Huffington Post. Over a dozen states have passed similar laws since.