Court of appeal overturns editor’s sentence