An 18-year-old who spread Islamic State propaganda online and threatened a synagogue has walked free after spending a year behind bars.