<human>: (Is there anywhere else I should post this?)

So here's what happened. My Web Design class uses a thing called Edmodo, which is basically Facebook for classrooms. Me and a couple friends posted our class "group code" (the code needed to access our class) on 4chan/b/, because we thought it would be funny and we hate Edmodo. 5 hours later, it's filled with porn/gore/the best of 4chan. Of course, our teacher found out, but doesn't know who it was. He claims that legal action will be taken... but because my friends and I never posted anything, can we get in legal trouble?

Could you distill the essence of the text into 1-3 sentences?
<bot>: Posted a link/password that was given to everyone on my class to 4chan, porn insued. I didn't post. Can I get in legal trouble?