§ 130 StGB lautete in der Urfassung des Strafgesetzbuchs von 1871:
„Wer in einer den öffentlichen Frieden gefährdenden Weise verschiedene Klassen der Bevölkerung zu Gewalttätigkeiten gegen einander öffentlich anreizt, wird mit Geldstrafe bis zu zweihundert Thalern oder mit Gefängniß bis zu zwei Jahren bestraft.“
The article you linked even explained that Nazis were prosecuted. That some of them had parliamentary immunity is another topic. Distinction of criminal and civil law is also secondary.
1960 a second paragraph was added the said that human dignity is indisputable. It was a reaction to anti-semitic attacks.
But it is pretty factual that Germany had hate-speech laws before the Nazis came to power.
> including the most recent legislation regarding social media
most legal experts think this law is not constitutional and it was responsible for banning satire on the first day of its inception. Future rulings will decide its fate. Not giving you a quote on that, let's just wait.