WELLINGTON, New Zealand — A New Zealand man was sentenced to nearly two years in prison on Tuesday for sharing a video of the terrorist attack in March that left 51 people dead at two mosques in Christchurch.

The man, Philip Arps, had pleaded guilty in April to charges of distributing objectionable content. In addition to sharing the gunman’s video online, Mr. Arps sent a copy of it to be doctored to look like a first-person-shooter video game, featuring cross hairs and a body count.

Immediately after the sentencing hearing in a Christchurch courtroom on Tuesday, a lawyer for Mr. Arps said his client would appeal the sentence. The lawyer, Anselm Williams, asserted that Mr. Arps had received a sentence of prison, rather than home detention, because of his white supremacist beliefs, not his actions.

In the week following the March attacks, Mr. Arps was in the news after members of the public complained to the police that vans belonging to the insulation company he owns were decorated with a Nazi symbol. Employees at the company wore camouflage uniforms, and its promotional materials featured other white supremacist symbols and references.