Robert Stewart was having sex with a bike in his locked hostel room. Robert said he was drunk and his actions misunderstood but when cleaners knocked and there was no response, they opened the door with a key and saw Robert having sex with a bike. The cleaners called the police, Robert got three years probation and is on the sex offenders list. The BBC website says their report on the story has over a million views and there is a legal debate.
John Scott, human rights expert says "the man involved in this case pleaded guilty to a breach of the peace so these issues of privacy weren't considered by the court. ... This case should not prevent people who want to engage in this sort of activity doing so." So, it's still legal to have sex with your bike in the privacy of a room. Just make sure to do it in a locked room, where the locks have no duplicate keys and you are able to hear a knock.
[Source: BBC News, The Mirror]