I’m pregnant and my friend just lost her baby. Help!

Yessica

So my friend was told she was never going to be able to conceive and she got her miracle baby, she was 14weeks pregnant and she had a miscarriage on december 31st. She doesn’t know I’m pregnant ( 9 weeks) I know now is not the right time but when should I tell her? I just feel like not telling her but at some point I’m going to post on social media and I don’t want her getting upset cause I didn’t mention it to her.. I need advice ☹️