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 country's 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 advocated for improved security measures in schools following the attacks.

The aunt of another victim, Shura, learned of her niece's death when her name was read out on the news.

Three Turkish government ministers are also expected to attend the funerals, according to reports.

In the shooting in Kahramanmaras, eight students and one teacher were killed, with 13 others wounded, including six in critical condition. The attacker, a 14-year-old, also died during the incident.

According to the local prosecutor's office, the attack was premeditated. They found a document on the suspect's computer indicating he intended to carry out a significant operation in the near future, alongside references to infamous mass killers.

Authorities reported that the attacker had a cache of weapons, entering two classrooms with five guns and seven magazines.

Amid growing concerns about online behavior, restrictions have been imposed on 1,104 social media accounts, and additional arrests were made for sharing posts suggesting future attacks.

Justice Minister Gürlek stated that 95 individuals were taken into custody following the government's crackdown aimed at preventing panic and misinformation.