The defendant was convicted of intimidation of a justice system participant and uttering threats after posting images and threats on Instagram revealing the identity of an undercover police officer who was scheduled to testify against him.
The Crown sought a sentence of 2.5 years, while the defence sought 2 years plus a day.
The court sentenced the defendant to 2.5 years concurrent on each count, finding the offences struck at the heart of the justice system.
With enhanced credit for pre-sentence custody, the sentence amounted to time served.
A 10-year weapons prohibition was also ordered.