John Nimmo, who pleaded guilty to sending "menacing" tweets to a feminist campaigner, also targeted Labour MP Stella Creasy, a court heard.
Prosecutor Alison Morgan said Ms Creasy had suffered a "substantial impact" as a result of "these events."
More top news
The well-respected foreign policy hawk enjoyed his greatest successes as national security adviser to President Jimmy Carter.
Police have arrested two men aged 20 and 22 on suspicion of terror offences, bringing the number of people are now in custody to 11.
Among those attending the Soundgarden and Audioslave singer's funeral were Brad Pitt, Pharrell and Christian Bale.