TEHRAN - Iran’s judiciary has sentenced to death a man held in detention for almost two years over his posts on X and other social media, his lawyer and several rights groups say.