A man who issued a slur-laden death threat to the prime minister and his wife during a months-long social media tirade has been spared jail.
Alexander Phillip David Keating, 37, was today convicted in Sydney's Downing Centre Local Court of using social media platform X to menace, harass and offend.
He posted 45 menacing messages between February and April last year, many of which called for violence against Muslims, queer people or politicians.
LIVE UPDATES: Pro-Palestine protesters vow to continue after ugly clash with police
Prime Minister Anthony Albanese was one of the targets of the "abhorrent" threats, magistrate Theo Tsavdaridis said.
Keating posted a death threat directed at the prime minister and his wife, which contained a graphic slur, the court was told.
The magistrate said the social media posts were a "serious affront" to the values of a civilised society.
"There is no place for hatred of this calibre in a country such as ours," he said.
"The posts advocated sexual violence, killing and physical annihilation on the basis of race, religion and the colour of their skin."
Keating had stopped taking medication for his mental health issues in the lead-up to writing the posts, Tsavdaridis noted.
He was also self-medicating with cannabis daily at the time.
The 37-year-old had become frustrated with government policies and the rise of "wokeness" and "communism" from late 2024, according to the agreed facts.
He felt he was unable to have an opinion on political issues.
READ MORE: Man's horrific injuries after kangaroo's 'gremlin hands' latched onto him
"One can express political opinions without resorting to calls for murder," Tsavdaridis said.
Because Keating only had six followers on X, his lawyer argued there was no evidence anyone had seen the posts to be offended by them.
But Tsavdaridis said Keating's account was public, so anyone using the site could theoretically have found the posts.
The magistrate stressed the need for deterrence of similar racially motivated crimes after the Bondi Beach terror attack in December.
"Any gains we have painstakingly made as a multicultural society over many years can very quickly be cast into oblivion," he said.
"The law has always drawn a clear boundary between robust discourse and the incitement of violence."
He ordered Keating to serve a two-year community corrections order and undergo constant mental health treatment.
NEVER MISS A STORY: Get your breaking news and exclusive stories first by following us across all platforms.
- Download the 9NEWS App here via Apple and Google Play
- Make 9News your preferred source on Google by ticking this box here
- Sign up to our breaking newsletter here