A NSW school teacher has made legal history after a former student was ordered to pay $105,000 for defaming her on Twitter and Facebook.