Leaving character judgments aside, videos such the one made by Mark Meechan, of his dog responding to the phrase ‘gas the Jews’ with a Nazi salute, should be legally permissible.
Legal questions don’t answer ethical questions. I think that this joke’s concept is grossly insensitive, and I do think that people need to spend more time worrying about what they find funny, and why.