This question is hypothetical
Say, I was denied several Jobs because of my beliefs as a right wing nationalist. I have made some comments in the past with regards to certain groups (mostly on Immigrants and Muslims). I've deleted those comments and all my accounts but somehow these comments are archived somewhere which the Company HR has access to. I've also been a registered member of some right wing groups until today, and somehow my membership is known.
I recently knew about this when a company insider explained to me why my employment was denied. They say that they cannot take the risk of employing me. Their company had a significant number of non-native employees and clients.
I live in the State of California.