People could even take what you wrote as sexual harassment. There is no truly PC way to attract a mate. If you worry about being pc all the time you are going to be just a friend all the time. You have to cross the line and touch a hand sometimes. I have been called gay multiple times by women because I was respecting their space and not being as aggressive as other dudes around me. However, like you said you got to read the room and keep the workplace professional.
This thread is toxic and should be closed.
What part of what was written could have been considered sexual harassment?
Asking somebody out or if you can buy them a drink is not sexual harassment unless you've already been turned down by the person and you're actually harassing them by asking for the nth time or in an overly aggressive way.