At my job, if the director finds out people are talking about their salary then they could easily get fired.
Sorry to say, but you screwed up by saying it to anyone, even your friend. I dont blame the cook by threatening to quit.
This may be just a job to you, but it is a lesson you should take with you from now on regardless of whether they fire you or not. That is just one thing you dont discuss.