A solicitor had her LinkedIn profile doctored by an ex-boyfriend who made her life a 'living hell' when she dumped him, a court heard.