There's a difference between those two things. The first one is protected under the First Amendment: the government cannot attack you for it. The second one has nothing to do with the government. Such a person may feel oppressed, but that's just being socially ostracized for having an unpopular opinion. People aren't entitled to being treated a certain way by their peers as long as they don't stray from the law.
To be fair, doxing is a problem and -- especially as a group -- people can get awfully close to that line of the law. This does need to be addressed, though I'm not sure how.