Laws that oppress the free expression of ideas, which are not expressed to advocate direct or indirect harm or violence, are bad laws that should be broken.
From the article, "Attacks on refugees are often the result of radicalization, which begins on social networks."
You don't restrict rights based on how others respond to people exercising those rights.
Laws that stop this kind of "expression" have existed in Germany a while now, for historical reasons.