If you are engaged in immoral behaviour in private and no one knows about it, then that matter remains between you and Allah. But the moment you choose to publicize it, celebrate it, and boast about your exploits, you have voluntarily brought it into the court of public opinion.
When people criticize, condemn, or distance themselves from you because of what you openly promote, the blame does not lie with them. It lies with the person who discarded modesty and self-respect for attention, applause, or notoriety.
Every human being has flaws, weaknesses, and sins. The wise person seeks Allah's forgiveness and prays that his shortcomings remain concealed. The foolish person tears away the veil that Allah placed over him and then complains when people judge him by what he himself chose to reveal.
If Allah has hidden your faults from the eyes of others, thank Him for that blessing. Do not expose what He concealed. Do not trade dignity for attention or modesty for momentary fame.
Not every truth about your private life deserves a public audience.