On Monday, a Los Angeles man was sentenced Monday for posting topless photos of his ex-girlfriend online, making him the first person to be convicted under California's new revenge porn law.

Noe Iniguez, 36, was found guilty of violating two restraining orders and the state's revenge porn law after a jury deliberated for seven days.

"Revenge porn" is the term given for intimate photos being shared online to exact torment on someone. The law banning this kind of posting was enacted in California in 2013, where it is now illegal to distribute private, sexually explicit photos or videos online without consent of the person who appears in them, according to the Washington Post. Originally, the law only banned images or video taken by someone else but was expanded in August to include selfies.

Prosecutors said that Iniguez's ex-girlfriend got the first restraining order against him in November 2011 when he began to send her harassing text messages. Then, using a fake name, Iniguez began posting insulting comments on her employer's website a month later.

In March, Iniguez posted a topless photo of his former girlfriend of four years, writing she was a "drunk" and a "slut" and urged her employer to fire her.

Iniguez was sentenced to one year in jail and three years of probation, as well as mandatory attendance of domestic violence counseling and a court order to stay away from the victim.

"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," Los Angeles City Attorney Mike Feuer said in a statement. "This conviction sends a strong message that this type of malicious behavior will not be tolerated."

California is one of the 13 states to enact similar revenge porn laws since 2013.