A Co Down man who posted online racist messages as anti-immigration protests developed into riots and businesses were being attacked has received an eight-month prison sentence, suspended for three years.