School threat leads to social media safety warning