A man has been convicted of supplying "magic mushrooms" to French student Antoine Maury, who was later found dead in a loch.

An extensive search was launched for Mr Maury after he went missing from a party at Edinburgh College accommodation on Milton Road on October 24 last year.

Police divers recovered the 21-year-old's body from Duddingston Loch at Holyrood Park five weeks later.

At Edinburgh Sheriff Court on Wednesday, Scott Mckerral was ordered to carry out 210 hours of unpaid work and placed under supervision for 18 months.

Mckerral, who is also a student at Edinburgh College, had earlier admitted being concerned in the supply of a fungus containing psilocin, known as"magic mushrooms", at the college's halls of residence.

Charges stated the 20-year-old supplied the substance to others and "in particular, to Antoine Maury" on the day the Paris-born student went missing.

Sheriff John Cook extended the sympathies of the court to the family of Mr Muary and said it was evident Mckerral, from Campbeltown in Argyll, had suffered remorse and was deeply affected by his friend's death.

He said he took into account that Mckerral was only 19 at the time and had no previous convictions.

Mr Cook added: "Furthermore, the effect of your youth, the bearing it might have on your offending, or your decision-making, or the opportunities available to you, to yet make something of your life, are all relevant factors that the court must take into account.

"The court must also take into account naivety and poor judgment in a young person."

He added: "Given what I have said, although a custodial sentence is no doubt merited, it cannot be said there is no sentence other than a custodial sentence available to the court."

Mr Maury's disappearance prompted extensive searches, with dozens of volunteers turning out to support police and specialist search teams.

There had been a possible sighting of him running towards Duddingston Golf Course in Holyrood Park without his shirt on.

The 21-year-old's mother Laura travelled to Edinburgh from France to help with the searches.