Bella Thorne "wanted to teach" an alleged hacker a lesson after he threatened to leak her nude photos so she posted them herself.