Trouble understanding when I (17F) should talk about something with friends (also 17F) or not

r/

I(17f) recently had an argument with my mom(50f) about how you shouldn’t trust friends with intimate details about your life because they’ll betray you and gossip about it. I act in the complete opposite way. I don’t know how to keep my mouth shut. I don’t see the need to (except sometimes when I’m mad and I say too much when I shouldn’t and hurt others but I’m working on it).

If I’m about to hang out with a guy i like, I think it’s totally normal to tell my friends. She thinks that they’ll just be annoying about it because of jealousy or smth idk. I’m worried she might be right and I’m putting way too much trust and effort into friendships idk.

TLDR: how do I know when I should or shouldn’t talk about things with people?