An Egyptian court sentenced a Lebanese tourist to eight years in prison on Saturday after she posted a video tirade on her Facebook page that Egyptian authorities claimed had insulted the country and its leader.

The news website Ahram reported that Mona el-Mazbouh was initially handed an 11-year sentence and a fine after she was convicted of “deliberately broadcasting false rumors which aim to undermine society and attack religions.” But her sentence was immediately reduced to eight years.

Under Egyptian law, “defaming and insulting the Egyptian people” is a crime.

In the May post on her Facebook page, which went viral, Ms. Mazbouh described being harassed by two men on the street of Cairo’s upscale Zamalek neighborhood and being ill-treated by a taxi driver. She called President Abdel Fattah al-Sisi “unjust” and Egypt a “son of a bitch country,” according to Reuters, which reported on the video before it was removed.

“You deserve what Sisi is doing to you. I hope God sends you someone more oppressive than Sisi,” she said in the original clip. She also made derogatory comments about Egyptians.