On Monday, Noe Iniguez, 36, was sentenced to a year of jail time for three criminal counts, including one count of violating California's relatively new revenge porn law. Iniguez was also found guilty of twice violating a restraining order his ex-girlfriend had against him.

In a press release , the Los Angeles City Attorney's Office said that the conviction of Iniguez under the revenge porn law was its first. A jury ruled that Iniguez will also have to serve 36 months probation, attend domestic violence counseling, and stay away from the victim.

California's revenge porn law was enacted in October 2013, and it forbids people from posting “nude or sexual” photos online with the intent to cause emotional harm. Violators of the law can face six months in jail and a $1,000 fine. The state aimed to go after popular sites like Hunter Moore's IsAnybodyUp, which posted nude photos of people with their identifying information but without their consent. Such sites have usually demanded a fee to have the photos taken down.

Iniguez's crime was not so complex. Iniguez's ex-girlfriend secured a restraining order against him in 2011 after he sent harassing text messages to her in the wake of the breakup of their four-year relationship. But in December 2013, using a fake name, he allegedly began posting derogatory comments about his ex-girlfriend on her employer's Facebook page. Then in March 2013, he allegedly posted topless photos of her on the same employer's Facebook page, calling her “drunk” and a “slut” and encouraging the employer to fire her from the company, the LA City Attorney said.

The passage of the California law was controversial, with supporters saying that the law was necessary to protect victims and with opponents like the ACLU saying that such a law could be used to hinder free speech. In December, authorities arrested Kevin Bollaert, who was accused of running an extortion site called ugotposted. In June, a San Diego judge ruled at a pretrial hearing that Bollaert could be prosecuted for 31 felony charges, but he was not charged with violating California's revenge porn law, which is a misdemeanor.