Girl code?

Astrid

Ok so me and my friend M are rlly close and she used to crush on S. But i didn’t find out til at one of the dances where she was yelling “traitor” at me while i danced on S. I apologized and we never talked about it again. Now my friend H told S i thought he was cute then H told me S said i was cute too. So now im here thinking shit am i breaking the girl code? Cuz i gave M permission to flirt with a guy i used to crush on but no matter how much it kills me should i drop S or tell M?