How people on social media react to tragedies