You're allowed to teach your pug to do Nazi salutes. You're not allowed to film yourself saying "gas the Jews" 20 times while showing your dog doing Nazi salutes. [EDIT...and then broadcast this to your YouTube channel]
He went to court and he could have tried a freedom of speech defence but he chose not to.