A former tax worker is sentenced to two years for inciting hatred online.