Turkish police have detained 162 people accused of posting controversial content online about two deadly school shootings that took place this week.

Justice Minister Akın Gürlek accused accounts of sharing footage of the incidents, spreading content capable of creating fear and praising crime.

At least 16 people were injured in a shooting at a high school in the south-east on Tuesday, before another nine were killed in a shooting at another school in the city of Kahramanmaras on Wednesday.

Hundreds have gathered near the city's main mosque for the funerals of the young victims, which are being held on Thursday.

One victim has been identified as 10-year-old Zeynep. Her uncle, Mahmut, told the BBC that she was a clever girl who respected others. He said: Now she is an angel, she flew away. He expressed a desire for more protection in schools following the attack.

The aunt of another victim, Shura, told the BBC she learned her niece had been killed when her name was read out on the news.

Three Turkish government ministers are also expected to attend the funerals, the BBC understands.

Eight students and one teacher were killed in the shooting in Kahramanmaras, with 13 others wounded, including six in critical condition.

A 14-year-old attacker was also killed during the incident, which occurred at Ayser Calik Secondary School. The suspect had planned the attack in advance, as indicated by a document found on his computer.

The attacker referenced US mass killer Elliot Rodger in a photo on his WhatsApp profile, according to police. He was reportedly well-armed, having entered the classrooms with five guns and seven magazines.

Following these attacks, Justice Minister Gürlek stated that 95 individuals had been taken into custody for sharing footage related to the attacks, despite a broadcast ban. They face accusations of creating public fear, praising criminals, and disseminating misinformation.

Further restrictions have been imposed on 1,104 social media accounts, and an additional 67 people have been detained for suggesting potential future attacks on schools.

On Tuesday, a separate attack resulted in 16 injuries at the Ahmet Koyuncu Vocational and Technical Anatolian High School, perpetrated by an ex-student who subsequently committed suicide.