Community activist and former mayoral candidate sentenced to six months in jail