A 20-year-old Youtube star from Spain has been sentenced to 15 months behind bars for a pranking a homeless man for a video.

Kanguhua Ren, who goes by the Youtube handle ReSet, got in trouble after posting a video where he hands a homeless man an Oreo cookie filled with toothpaste.  The man was seen vomiting after eating the doctored cookie. A Barcelona judge found Ren guilty of causing “physical suffering” to the victim and was sentenced to 15 months and fined 20,000 Euros, although he’s unlikely to serve any jail time due to Spain’s rules on non-violent first offenders.