A wanted man was caught after he posted on his own police appeal on social media.
Brett Painter, 25, formerly of Hessle Road, Hull, was convicted in his absence of assault at Hull Magistrates' Court in September.
Humberside Police was able to trace him to a house in Leeds after he commented on an appeal made by the force on its Facebook page.
He was given a 12-month community order after appearing in court on Thursday.
He was also ordered to pay £300 costs and a £160 victim surcharge.