When it's pointed toward someone's real wife, in a sincere thread about something important - well, sex worker jokes aren't funny in that situation. Particularly given the guy isn't a friend of yours, nor is the wife.
Suggestion: never try that anywhere but a web forum.