On 19 January 2022, Yahor was detained over short videos that, according to the prosecution, he had posted in a local Telegram chat in late August and early September 2020. In these clips, edited in a special app from fragments of films and music videos, the face of an actor or a singer was replaced with Lukashenko's. Yahor explained that he had wanted to ease the tension and had no intention of insulting anyone.
In April 2022, he was found guilty in a criminal case of insulting Lukashenko and sentenced to restricted freedom with referral to an open-type correctional facility. In May of the same year, the appeal court reduced the term.
According to human rights defenders' calculations, he was released in June 2024 after fully serving the sentence imposed by the court.
At the end of June of the same year, Yahor was sentenced to three days of administrative arrest for disobeying an official's demand.





