Friends or not

So I know what I need to do in this situation but it's so hard. I have a friend who recently had a child with a very controlling person. I've been trying to help her for months. This part don't matter but he is here from Mexico and not a U.S citizen. I'm not judging but anyways this guy has been in her life for about a year and a half. She lost a lot of friends because she told him who is a lesbian, or bi sexual and I happen to be into girls. So she probably told him. She also told him she fucked my brother, which him and I have the same last name on fb so now I'm not even allowed to be friends with him when he's home. Like I understand she needs to keep her family together but her and I have been friends for 7 years now and there's nothing I can do about it but move forward. I would buy her clothes for the baby bc I wanted too. I tried to show an effort to be in her life but to be friends behind someone's back? And she can only message me on snap chat otherwise if he is home, she deletes snap chat. I don't think this is a good friendship. But if anyone can help me figure that out or went thru something similar please share. TIA