Update: 9 October, 16:38 BST: Jamal Wald Nass, the Moroccan national jailed with Ray Cole, has been freed.
According to Omar Arbib, an official for the Moroccan Association of Human Rights, Jamal Wald Nass,"Was released on bail on Wednesday pending his appeal judgement, which will not occur for several weeks," AFP reported.
He said: "His British companion (Ray Cole) and he, two consenting adults, should never have been arrested. We insist on the respect of individual freedoms, in line with international human rights conventions,." Nass is believed to be in his 20s and using a false name.
Two days earlier, Ray Cole, the man with whom he was arrested at a bus stop, was freed.
The BBC reported:
Mr Cole is understood to have been granted a conditional release pending an appeal.
His son, Adrian Cole, 41, said: "Our legal team in Marrakesh lodged an appeal today.
"It has moved much faster than we expected and the court was able to take the step of releasing my father."
Original story below.
This is Ray Cole, a retired magazine publisher from Deal in Kent.
He has since shared photos of the prison.
According to Pink News, he had been visiting a Moroccan man named Jamal Jam Wald Nass. The site said:
On September 18 the pair were approached at a bus stop by police officers, and were detained on the grounds of suspected homosexuality...
Both Mr Cole and Mr Jam Wald Nass were sentenced to four months in prison on October 2, when police searched Mr Cole's mobile phone and found a photograph of the two men together, which was used in court as "proof" of homosexual acts.
His latest Facebook update is rather more positive.
People have begun to tweet the hashtag #FreeRayCole:
The BBC has now interviewed Ray Cole's family.