A mayor says his council is taking a tough stance after a social media message drew a barrage of vitriol and racist comments.