By allowing anonymous commentary, scraping every student's data and seeding the conversation around "rumors", you created an environment that is perfect for targeted harassment. You created the platform and maintained it; what happens on that platform is absolutely your responsibility.
I highly recommend that you take this opportunity to do some introspection and consider why so many people were upset.