The EU has written to Elon Musk warning him that the platform is being used to spread illegal content.