Context on the first one, she wasn't jailed for the post itself. She pleaded guilty (against her own legal advice apparently) to the crime of inciting racial hatred which carries a prison sentence.
There were other people also arrested at the time who did not plead guilty to this and were not charged.
Also she did call for a hotel filled with migrants to be set on fire while people were actively trying to do just that.