Many years ago I broke off the end of the shock stud on my '77 while installing a new set of shocks. There was still enough stud there to carry the full load of the shock but nothing left for the nut. In a pinch I drilled a hole in the stub and tapped in threads for a 1/4" bolt. The bolt with a washer kept the shock on the stud. I left it that way for a very long time, maybe 5,000 miles, but was never comfortable knowing that it was only a 1/4" bolt holding things together.
For a couple years now I have been working on a complete rebuilding of the bike. I drilled out that broken shock stud completely and inserted a shouldered metric stud from the backside and welded it in place from both sides.
I bought the stud from McMaster Carr. I had to go with a 10mm x 1.25 pitch stud, I could not find any any 10mm shouldered studs with 1.50 pitch like the original shock stud. The diameter of the shaft that the shock slips onto is 1/2" dia. which is a little smaller than the original metric stud. It is a solid repair, I just have to keep track of my nuts!
Good luck, it is a real pain in the a__.