Updated

A Minnesota man who admitted sending an angry tweet threatening U.S. Attorney General Loretta Lynch has been sentenced to four years of probation with a long list of conditions meant to keep him out of trouble.

Mahamed Abukar Said (sy-EED') was originally charged with two felonies after posting a message on Twitter threatening to "whack" the attorney general.

He pleaded guilty last month to a misdemeanor of impeding a law enforcement officer. He has said he was angry because prosecutors had just charged six of his friends with conspiring to join the Islamic State group. He has admitted being on drugs when he sent the tweet.

At Monday's sentencing, Judge Lawrence Piersol said the 20-year-old Said seems intelligent, but that intelligence doesn't always go hand in hand with good judgment.