Ryan Joseph Sadoski, 19, of Huntley.

A 19-year-old Huntley High School student has received probation and community service after pleading guilty to a reduced charge after he posted a photo of a gun with a threatening message on social media in 2018.

Ryan Joseph Sadoski, 19, of the 10500 block of Fleetwood Street in Huntley, was originally charged with disorderly conduct, a class 4 felony.

Prosecutors dropped the felony charge in exchange for Sadoski pleading guilty to a Class A misdemeanor of disorderly conduct.

Sadoski was sentenced to two years of probation and 100 hours of community service. He will also be required to pay $1,390.24 in restitution and $1,139 in court costs, be required to undergo mental health treatment and write an apology letter, court records show.

Sadoski was arrested on September 21, 2018 after he posted a photo on Snapchat of a real gun with a threatening caption. Another student reported the photo to school administration, who notified police.

[Suggested Article]  Charges announced in violent carjacking of pregnant mother whose child was abducted near Libertyville

Authorities recovered two guns from Sadoski’s home during a search warrant and took the teen into custody.