It's a hard problem to solve, nostr solves it by redundancy, if one relay censors you, your content can exist and be pulled from another, if all public relays censor you, you can run your own relay and no one can take down that instance of your content