Joe Robinson, from Leeds, was facing a seven-and-a half-year jail term. In 2015, he spent time with Kurdish armed groups in Syria, including the YPG, which Turkey regards as a terrorist group.